From 9de9b90978a208ecc31ab2e99b049ea9067b637f Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Tue, 31 Dec 2019 12:06:46 -0500 Subject: [PATCH] ci: add windows workflow It can be advantageous to have distinct workflows on a per-operating system basis, to quickly see the scope of a failure --- .github/workflows/ci_windows.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci_windows.yml diff --git a/.github/workflows/ci_windows.yml b/.github/workflows/ci_windows.yml new file mode 100644 index 000000000..cdcab0a3a --- /dev/null +++ b/.github/workflows/ci_windows.yml @@ -0,0 +1,37 @@ +name: CI_windows + +on: [push, pull_request] + +env: + CI: "ON" + +jobs: + Build: + runs-on: windows-latest + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v1 + + - run: cmake -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -Wdev -B build + env: + FC: gfortran + CC: gcc + CXX: g++ + + - name: CMake build + run: cmake --build build --parallel + + - run: cmake --build build --verbose --parallel 1 + if: failure() + + - name: CTest + run: ctest --parallel -V + working-directory: build + + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: WindowsCMakeTestlog + path: build/Testing/Temporary/LastTest.log \ No newline at end of file