Further simplify the tests #99
Workflow file for this run
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
name: OpenTurbine-CI | |
on: push | |
jobs: | |
Correctness-MacOS: | |
runs-on: macos-latest | |
env: | |
CMAKE_BUILD_PARALLEL_LEVEL: 4 | |
CTEST_PARALLEL_LEVEL: 2 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: [Release, Debug] | |
steps: | |
- name: Cache install Trilinos | |
id: cache-trilinos | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/spack | |
key: macos-spack | |
- name: Install Trilinos | |
if: steps.cache-trilinos.outputs.cache-hit != 'true' | |
run: | | |
git clone https://github.com/spack/spack.git | |
source spack/share/spack/setup-env.sh | |
spack compiler find | |
spack external find | |
spack install googletest | |
spack install trilinos@master~mpi~epetra+basker | |
- name: Cache install yaml-cpp | |
id: cache-yaml-cpp | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/spack | |
key: macos-yaml-cpp | |
- name: Install yaml-cpp | |
if: steps.cache-yaml-cpp.outputs.cache-hit != 'true' | |
run: | | |
source spack/share/spack/setup-env.sh | |
spack install yaml-cpp | |
- name: Clone | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
path: openturbine | |
- name: Test OpenTurbine | |
run: | | |
source spack/share/spack/setup-env.sh | |
spack load trilinos | |
spack load googletest | |
spack load yaml-cpp | |
cd openturbine | |
mkdir build | |
cd build | |
cmake .. \ | |
-DOpenTurbine_ENABLE_SANITIZER_ADDRESS=ON \ | |
-DOpenTurbine_ENABLE_SANITIZER_UNDEFINED=ON \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
cmake --build . | |
cp src/*.dll tests/unit_tests/ | |
ctest --output-on-failure |