Skip to content

Commit 1e6cd23

Browse files
Add Windows build to Github Actions
1 parent 2a39774 commit 1e6cd23

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/cmake.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
- try-github-actions
7+
- try-github-actions-for-windows
88
paths:
99
- .github/workflows/cmake.yml
1010
- '**CMakeLists.txt'
@@ -59,7 +59,7 @@ jobs:
5959
strategy:
6060
fail-fast: true
6161
matrix:
62-
os: [ macos-latest, ubuntu-latest ]
62+
os: [ macos-latest, ubuntu-latest, windows-latest ]
6363
fflags: [
6464
"-fimplicit-none -frecursive -fcheck=all",
6565
"-fimplicit-none -frecursive -fcheck=all -fopenmp" ]
@@ -76,12 +76,12 @@ jobs:
7676
-D CMAKE_C_COMPILER="gcc-11"
7777
-D CMAKE_Fortran_COMPILER="gfortran-11"
7878
79-
# - name: Use Unix Makefiles on Windows
80-
# if: ${{ matrix.os == 'windows-latest' }}
81-
# run: >
82-
# cmake -B build
83-
# -G "Unix Makefiles"
84-
# -D CMAKE_C_FLAGS="${{env.CFLAGS}} -Wl,--stack=1000000000"
79+
- name: Use Unix Makefiles on Windows
80+
if: ${{ matrix.os == 'windows-latest' }}
81+
run: >
82+
cmake -B build
83+
-G "Unix Makefiles"
84+
-D CMAKE_C_FLAGS="${{env.CFLAGS}} -Wl,--stack=1000000000"
8585
8686
- name: Configure CMake
8787
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.

0 commit comments

Comments
 (0)