diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa8e9bf6..4adf8fe5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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