Update version and add callback to scan_run #128
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: 🧪 C-core testing | |
on: | |
push: | |
branches: | |
- "**" | |
paths: | |
- c-core/** | |
- .github/workflows/test-c-core.yml | |
defaults: | |
run: | |
working-directory: c-core | |
jobs: | |
test: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
build_type: [Release, Debug] | |
os: [ubuntu-latest, macos-13] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure CMake on Linux | |
if: runner.os == 'Linux' | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DUSE_SANITIZER='Address;Undefined' | |
- name: Configure CMake on MacOS | |
if: runner.os == 'macOS' | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ASAN_OPTIONS=allocator_may_return_null=1 ctest -C ${{matrix.build_type}} --rerun-failed --output-on-failure |