Skip to content

Commit 3f4578f

Browse files
authored
Merge pull request #275 from awvwgk/win-ci
Add all three MSYS2 systems to Windows CI
2 parents 6d01ec9 + e2d0a57 commit 3f4578f

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed

.github/workflows/ci_windows.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,82 @@ jobs:
4141
with:
4242
name: WindowsCMakeTestlog
4343
path: build/Testing/Temporary/LastTest.log
44+
45+
msys2-build:
46+
runs-on: windows-latest
47+
strategy:
48+
fail-fast: false
49+
matrix:
50+
include: [
51+
{ msystem: MSYS, arch: x86_64 },
52+
{ msystem: MINGW64, arch: x86_64 },
53+
{ msystem: MINGW32, arch: i686 }
54+
]
55+
defaults:
56+
run:
57+
shell: msys2 {0}
58+
steps:
59+
- uses: actions/checkout@v2
60+
61+
- name: Setup MinGW native environment
62+
uses: msys2/setup-msys2@v2
63+
if: contains(matrix.msystem, 'MINGW')
64+
with:
65+
msystem: ${{ matrix.msystem }}
66+
update: false
67+
install: >-
68+
git
69+
mingw-w64-${{ matrix.arch }}-gcc
70+
mingw-w64-${{ matrix.arch }}-gcc-fortran
71+
mingw-w64-${{ matrix.arch }}-python
72+
mingw-w64-${{ matrix.arch }}-python-pip
73+
mingw-w64-${{ matrix.arch }}-cmake
74+
mingw-w64-${{ matrix.arch }}-ninja
75+
76+
- name: Setup msys POSIX environment
77+
uses: msys2/setup-msys2@v2
78+
if: contains(matrix.msystem, 'MSYS')
79+
with:
80+
msystem: MSYS
81+
update: false
82+
install: >-
83+
git
84+
gcc
85+
gcc-fortran
86+
python
87+
python-pip
88+
cmake
89+
ninja
90+
91+
- name: Install fypp
92+
run: pip install fypp
93+
94+
- run: >-
95+
cmake -G Ninja
96+
-DCMAKE_SH="CMAKE_SH-NOTFOUND"
97+
-Wdev
98+
-B build
99+
-DCMAKE_BUILD_TYPE=Debug
100+
-DCMAKE_Fortran_FLAGS_DEBUG="-Wall -Wextra -Wimplicit-interface -fPIC -g -fcheck=all -fbacktrace"
101+
-DCMAKE_MAXIMUM_RANK=4
102+
env:
103+
FC: gfortran
104+
CC: gcc
105+
CXX: g++
106+
107+
- name: CMake build
108+
run: cmake --build build --parallel
109+
110+
- name: catch build fail
111+
run: cmake --build build --verbose --parallel 1
112+
if: failure()
113+
114+
- name: CTest
115+
run: ctest --output-on-failure --parallel -V -LE quadruple_precision
116+
working-directory: build
117+
118+
- uses: actions/upload-artifact@v1
119+
if: failure()
120+
with:
121+
name: WindowsCMakeTestlog
122+
path: build/Testing/Temporary/LastTest.log

src/tests/stats/test_mean.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ program test_mean
77
implicit none
88

99
real(sp), parameter :: sptol = 1000 * epsilon(1._sp)
10-
real(dp), parameter :: dptol = 1000 * epsilon(1._dp)
10+
real(dp), parameter :: dptol = 2000 * epsilon(1._dp)
1111

1212
real(sp) :: s1(3) = [1.0_sp, 2.0_sp, 3.0_sp]
1313

0 commit comments

Comments
 (0)