gyselalibxx #550
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) The DDC development team, see COPYRIGHT.md file | |
# | |
# SPDX-License-Identifier: MIT | |
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 | |
uses: actions/checkout@v4 | |
with: | |
repository: gyselax/gyselalibxx | |
submodules: true | |
- name: rm ddc | |
run: rm -rf vendor/ddc | |
- name: Checkout ddc | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
path: vendor/ddc | |
- name: Build | |
run: | | |
cat<<-EOF > run.sh | |
set -xe | |
git config --global --add safe.directory /src/vendor/kokkos | |
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/gyselalibxx_env bash /src/run.sh | |
continue-on-error: true |