Update ubuntu-20.04 to ubuntu-22.04 in CI #1740
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Test on Linux | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '**.md' | |
| env: | |
| proc_num: $(nproc) | |
| jobs: | |
| clang-unittest: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: ./.github/actions/install-essential-dependences | |
| - uses: ./.github/actions/init-ut-make-config | |
| with: | |
| options: --cc=clang-13 --cxx=clang++-13 --with-bthread-tracer | |
| - name: compile tests | |
| run: | | |
| cat config.mk | |
| cd test | |
| make -j ${{env.proc_num}} bthread_unittest test_butil | |
| - name: run tests | |
| run: | | |
| cd test | |
| sh ./run_tests.sh |