Skip to content

Commit

Permalink
Update CI to new build system
Browse files Browse the repository at this point in the history
  • Loading branch information
chillenzer committed Jan 15, 2025
1 parent 5276aff commit be501d0
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Continuous Integration
on: [push, pull_request]
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
pre-commit:
runs-on: ubuntu-latest
Expand All @@ -18,26 +21,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- run: sudo apt update && sudo apt install libboost-all-dev
- run: mkdir build_dir
- working-directory: build_dir
run: |
git submodule init && git submodule update
- working-directory: build_dir
run: |
cmake .. \
-DCMAKE_CXX_FLAGS="-std=c++20 -g" \
-Dalpaka_CXX_STANDARD=20 \
-DmallocMC_CATCH2_PROVIDER=intern \
- run: |
cmake -S. -Bbuild \
-Dalpaka_ACC_CPU_B_OMP2_T_SEQ_ENABLE:BOOL=ON \
-Dalpaka_ACC_CPU_B_SEQ_T_OMP2_ENABLE:BOOL=ON \
-Dalpaka_ACC_CPU_B_SEQ_T_SEQ_ENABLE:BOOL=ON \
-Dalpaka_ACC_CPU_B_SEQ_T_THREADS_ENABLE:BOOL=ON
- working-directory: build_dir
run: make -j tests examples
- working-directory: build_dir
run: ./tests
- working-directory: build_dir
run: ./mallocMC_Example01
- working-directory: build_dir
run: ./mallocMC_Example03
-Dalpaka_ACC_CPU_B_SEQ_T_THREADS_ENABLE:BOOL=ON \
-DmallocMC_BUILD_TESTING:BOOL=ON \
-DmallocMC_BUILD_EXAMPLES:BOOL=ON
- working-directory: build
run: cmake --build . -j
- working-directory: build
run: ctest
- working-directory: build
run: |
for example in examples/[^C]*/mallocMCExample*; do
./${example}
done

0 comments on commit be501d0

Please sign in to comment.