Update codeql action #46
This file contains 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: infer | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
infer: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: srz-zumix/setup-infer@v1 | |
- name: Install prerequisites | |
run: sudo apt-get install --no-install-recommends cmake | |
- name: Prepare for build | |
run: mkdir build | |
- name: Configure cmake | |
working-directory: build | |
run: infer compile -- cmake -DCMAKE_BUILD_TYPE=Debug -DCXX_STANDARD_UPTO=20 .. | |
- name: Run infer | |
working-directory: build | |
run: infer run -- make -j2 unit_test | |
- name: Report infer | |
uses: srz-zumix/reviewdog-action-infer@v1 | |
with: | |
report_path: ./build/infer-out | |
reporter: github-pr-review |