Skip to content

Fix more CI warnings on Mac #120

Fix more CI warnings on Mac

Fix more CI warnings on Mac #120

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:
compiler: [g++, clang++]
build_type: [Release, Debug]
steps:
- name: Cache install Dependencies
id: cache-trilinos
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/spack
key: macos-spack
- name: Install Dependencies
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 llvm
spack install cppcheck
spack install yaml-cpp
spack install trilinos@master~mpi~epetra+basker
- name: Clone
uses: actions/checkout@v4
with:
submodules: true
path: openturbine
- name: Test OpenTurbine
run: |
source spack/share/spack/setup-env.sh
spack load llvm
spack load cppcheck
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 \
-DOpenTurbine_ENABLE_CPPCHECK=ON \
-DOpenTurbine_ENABLE_CLANG_TIDY=ON \
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build .
cp src/*.dll tests/unit_tests/
ctest --output-on-failure