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 bbd2c52
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/correctness-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
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:
# - uses: fortran-lang/setup-fortran@v1
# id: setup-fortran
# with:
# compiler: intel
- name: Install Dependencies
run: |
git clone https://github.com/trilinos/Trilinos.git
cd Trilinos
mkdir build
cd build
cmake ../
cmake --build .
# git clone https://github.com/spack/spack.git
# spack/share/spack/setup-env.ps1
# spack compiler find --mixed-toolchain
# spack compiler list
# 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 cppflags="-DTPL_ENABLE_BLAS=OFF"
- 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 bbd2c52

Please sign in to comment.