Skip to content

Commit

Permalink
Merge pull request #138 from vil02/add_run_infer
Browse files Browse the repository at this point in the history
chore: add `infer.yml`
  • Loading branch information
vil02 authored Sep 27, 2024
2 parents 09cd968 + aa50fd6 commit d18b9f8
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/infer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
name: infer

'on':
workflow_dispatch:
push:
branches:
- master
pull_request:

env:
build_path: ${{github.workspace}}/infer_build

jobs:
infer:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [clang++, g++]
build_type: [Release, Debug]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install boost
uses: MarkusJx/[email protected]
id: install-boost
with:
boost_version: 1.85.0

- name: Install infer
uses: srz-zumix/setup-infer@main

- name: Create Build Environment
run: cmake -E make_directory ${{env.build_path}}

- name: Configure CMake
working-directory: ${{env.build_path}}
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
run: >
cmake ../
-D CMAKE_BUILD_TYPE=${{matrix.build_type}}
-D CMAKE_CXX_COMPILER=${{matrix.compiler}}
-D CMAKE_EXPORT_COMPILE_COMMANDS=1
- name: Run infer
working-directory: ${{env.build_path}}
run: >
infer
--fail-on-issue
--print-logs
--no-progress-bar
run --compilation-database compile_commands.json
...

0 comments on commit d18b9f8

Please sign in to comment.