Skip to content

add github ci23

add github ci23 #8

Workflow file for this run

name: Build and run tests
on:
workflow_call:
inputs:
use-system-libraries: # the variable you can use in place of a matrix
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: aare
python-version: 3.11
- name: install dependencies

Check failure on line 18 in .github/workflows/common-workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/common-workflow.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
shell: bash -el {0}
if: ${{ contains(inputs.use-system-libraries, 'ON')}}
run: conda info
- name: build with fetch content
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE="Debug" -DAARE_PYTHON_BINDINGS="OFF" -DAARE_SYSTEM_LIBRARIES=${{inputs.use-system-libraries}}
cmake --build . -j 10
- name: run tests
run: |
cd build/
./run_tests
- name: run examples
run: |
export PROJECT_ROOT_DIR="."
cd build/examples/
ls *_example
find -name "*_example" | xargs -I {} -n 1 -t bash -c {}