Skip to content

Commit

Permalink
add github ci41
Browse files Browse the repository at this point in the history
  • Loading branch information
Bechir committed Apr 2, 2024
1 parent 137375e commit affcc2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/common-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ on:
required: true
type: string
default: Debug
use-python-bindings:
required: true
type: string
default: OFF

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -29,8 +33,8 @@ jobs:
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=${{inputs.build-type}} -DAARE_PYTHON_BINDINGS="OFF" -DAARE_SYSTEM_LIBRARIES=${{inputs.use-system-libraries}}
cmake --build . -j 10
cmake .. -DCMAKE_BUILD_TYPE=${{inputs.build-type}} -DAARE_PYTHON_BINDINGS=${{inputs.use-python-bindings}} -DAARE_SYSTEM_LIBRARIES=${{inputs.use-system-libraries}}
cmake --build . -j
- name: run tests
run: |
cd build/
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
matrix:
use-system-libraries: ["OFF","ON"]
build-type: ["Debug","Release"]
use-python-bindings: ["OFF","ON"]
uses: ./.github/workflows/common-workflow.yml # calls the one above
with:
use-system-libraries: ${{ matrix.use-system-libraries }}
build-type: ${{ matrix.build-type }}
use-python-bindings: ${{ matrix.use-python-bindings }}
secrets: inherit

0 comments on commit affcc2e

Please sign in to comment.