Skip to content

Commit

Permalink
Update gyselalibxx workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Jan 8, 2025
1 parent aaff00e commit d2fbf18
Showing 1 changed file with 17 additions and 29 deletions.
46 changes: 17 additions & 29 deletions .github/workflows/gyselalibxx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ name: gyselalibxx
on: workflow_dispatch
jobs:
tests:
strategy:
fail-fast: false
matrix:
cmake_build_type: ['Debug', 'Release']
runs-on: ubuntu-latest
steps:
- name: Checkout gyselalibxx
Expand All @@ -18,42 +22,26 @@ jobs:
- name: Checkout ddc
uses: actions/checkout@v4
with:
submodules: recursive
submodules: true
path: vendor/ddc
- name: Build
run: |
cat<<-EOF > run.sh
set -xe
git config --global --add safe.directory /src/vendor/kokkos
cmake -DCMAKE_CXX_FLAGS=-Wall -DBUILD_BENCHMARKS=ON -B build -S /src
cmake --build build --parallel 2 --verbose
export CMAKE_BUILD_PARALLEL_LEVEL=4
export CMAKE_BUILD_TYPE=${{matrix.cmake_build_type}}
cmake \
-DGYSELALIBXX_DEFAULT_CXX_FLAGS="" \
-B build \
-S /src
cmake --build build
ctest --test-dir build --output-on-failure --timeout 5 -LE test_on_Release_only
EOF
docker run -v ${PWD}:/src:ro ghcr.io/gyselax/voicexx_env bash /src/run.sh
continue-on-error: true
tests_Release:
runs-on: ubuntu-latest
steps:
- name: Checkout gyselalibxx
uses: actions/checkout@v4
with:
repository: gyselax/gyselalibxx
submodules: recursive
- name: rm ddc
run: rm -rf vendor/ddc
- name: Checkout ddc
uses: actions/checkout@v4
with:
submodules: recursive
path: vendor/ddc
- name: Build
run: |
cat<<-EOF > run.sh
set -xe
git config --global --add safe.directory /src/vendor/kokkos
cmake -DCMAKE_CXX_FLAGS=-Wall -DBUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release -B build -S /src
cmake --build build --parallel 2 --verbose
ctest --test-dir build --output-on-failure --timeout 5
EOF
docker run -v ${PWD}:/src:ro ghcr.io/gyselax/voicexx_env bash /src/run.sh
continue-on-error: true

0 comments on commit d2fbf18

Please sign in to comment.