Skip to content

Commit 9de9b90

Browse files
committed
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
1 parent 961b5ad commit 9de9b90

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci_windows.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI_windows
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CI: "ON"
7+
8+
jobs:
9+
Build:
10+
runs-on: windows-latest
11+
strategy:
12+
fail-fast: false
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
17+
- run: cmake -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -Wdev -B build
18+
env:
19+
FC: gfortran
20+
CC: gcc
21+
CXX: g++
22+
23+
- name: CMake build
24+
run: cmake --build build --parallel
25+
26+
- run: cmake --build build --verbose --parallel 1
27+
if: failure()
28+
29+
- name: CTest
30+
run: ctest --parallel -V
31+
working-directory: build
32+
33+
- uses: actions/upload-artifact@v1
34+
if: failure()
35+
with:
36+
name: WindowsCMakeTestlog
37+
path: build/Testing/Temporary/LastTest.log

0 commit comments

Comments
 (0)