Skip to content

Added CI line for Windows #73

Added CI line for Windows

Added CI line for Windows #73

name: OpenTurbine-CI
on: push
jobs:
Correctness-Windows:
runs-on: windows-latest
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 2
CXX: ${{matrix.compiler}}
FC: gfortran
strategy:
fail-fast: false
matrix:
compiler: [cl]
build_type: [Release, Debug]
steps:
- name: Install Dependencies
run: |
wsl
git clone https://github.com/spack/spack.git
spack/share/spack/setup-env.sh
spack compiler find --mixed-toolchain
spack compiler list
spack compiler list oneapi
spack compiler info msvc
spack compiler info gcc
spack compiler info clang
spack external find
spack install trilinos@master~mpi~epetra~muelu~ml~ifpack2~ifpack~fortran~amesos~anasazi~belos~aztec~sacado
- name: Clone
uses: actions/checkout@v4
with:
submodules: true
path: openturbine
- name: Test OpenTurbine
run: |
spack/share/spack/setup-env.ps1
spack load trilinos
spack load googletest
spack load cppcheck
spack load yaml-cpp
cd openturbine
mkdir build
cd build
cmake .. \
-DOpenTurbine_ENABLE_SANITIZER_ADDRESS=ON \
-DOpenTurbine_ENABLE_SANITIZER_LEAK=ON \
-DOpenTurbine_ENABLE_SANITIZER_UNDEFINED=ON \
-DOpenTurbine_ENABLE_CPPCHECK=ON \
-DOpenTurbine_ENABLE_CLANG_TIDY=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build .
cp src/*.dll tests/unit_tests/
ctest --output-on-failure