Skip to content

add github ci5

add github ci5 #5

Workflow file for this run

name: Build and run tests
on: [push]
jobs:
build with sanitizers:

Check failure on line 4 in .github/workflows/build-and-test.yml

View workflow run for this annotation

GitHub Actions / Build and run tests

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-test.yml (Line: 4, Col: 3): The identifier 'build with sanitizers' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/build-and-test.yml (Line: 12, Col: 13): Unexpected symbol: '"ON"'. Located at position 30 within expression: matrix.use-system-libraries=="ON"
runs-on: ubuntu-latest
strategy:
matrix:
use-system-libraries: ["ON","OFF"]
steps:
- uses: actions/checkout@v3
- name: install dependencies
if: matrix.use-system-libraries=="ON"
run: echo "AAA"
- name: build with fetch content
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE="Debug" -DAARE_PYTHON_BINDINGS="OFF" -DAARE_SYSTEM_LIBRARIES=${{matrix.use-system-libraries}}
cmake --build . -j 10
- name: run tests
run: |
cd build/
./run_tests
- name: run examples
run: |
cd build/examples/
ls *_example
find -name "*_example" | xargs -I {} -n 1 -t bash -c {}