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 cb0fe78
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,33 @@ 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
pwd
ls
ls ..
- working-directory: build
run: |
pwd
ls
ls ..
cmake --build . -j
- working-directory: build
run: ctest
- working-directory: build
run: |
pwd
ls
ls ..
for example in examples/*/mallocMCExample*; do
./${example}
done

0 comments on commit cb0fe78

Please sign in to comment.