Skip to content

Commit

Permalink
Added CI line for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ddement committed Aug 22, 2024
1 parent 9695737 commit f74f689
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/correctness-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: OpenTurbine-CI

on: push

jobs:
Correctness-Windows:
defaults:
run:
shell: wsl-bash {0}
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:
- uses: Vampire/setup-wsl@v3
with:
distribution: Ubuntu-24.04
additional-packages:
gcc
- name: Install Dependencies
shell: wsl-bash {0}
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

0 comments on commit f74f689

Please sign in to comment.