38
38
mingw-w64-${{ matrix.arch }}-python-setuptools
39
39
mingw-w64-${{ matrix.arch }}-cmake
40
40
mingw-w64-${{ matrix.arch }}-ninja
41
- mingw-w64-${{ matrix.arch }}-openblas
42
41
43
42
- name : Setup msys POSIX environment
44
43
uses : msys2/setup-msys2@v2
57
56
58
57
- name : Install fypp
59
58
run : pip install fypp
60
-
61
- # Build and test with build -in BLAS and LAPACK
59
+
60
+ # Build and test with built -in BLAS and LAPACK
62
61
- run : >-
63
62
PATH=$PATH:/mingw64/bin/ cmake
64
63
-Wdev
92
91
- name : Install project
93
92
run : PATH=$PATH:/mingw64/bin/ cmake --install build
94
93
94
+ msys2-build-with-OpenBLAS :
95
+ runs-on : windows-latest
96
+ strategy :
97
+ fail-fast : false
98
+ matrix :
99
+ include : [
100
+ { msystem: MINGW64, arch: x86_64 }
101
+ ]
102
+ defaults :
103
+ run :
104
+ shell : msys2 {0}
105
+ steps :
106
+ - uses : actions/checkout@v2
107
+
108
+ - name : Setup MinGW native environment
109
+ uses : msys2/setup-msys2@v2
110
+ with :
111
+ msystem : ${{ matrix.msystem }}
112
+ update : false
113
+ install : >-
114
+ git
115
+ mingw-w64-${{ matrix.arch }}-gcc
116
+ mingw-w64-${{ matrix.arch }}-gcc-fortran
117
+ mingw-w64-${{ matrix.arch }}-python
118
+ mingw-w64-${{ matrix.arch }}-python-pip
119
+ mingw-w64-${{ matrix.arch }}-python-setuptools
120
+ mingw-w64-${{ matrix.arch }}-cmake
121
+ mingw-w64-${{ matrix.arch }}-ninja
122
+ mingw-w64-${{ matrix.arch }}-openblas
123
+
124
+ - name : Setup msys POSIX environment
125
+ uses : msys2/setup-msys2@v2
126
+ if : contains(matrix.msystem, 'MSYS')
127
+ with :
128
+ msystem : MSYS
129
+ update : false
130
+ install : >-
131
+ git
132
+ mingw-w64-x86_64-gcc
133
+ mingw-w64-x86_64-gcc-fortran
134
+ python
135
+ python-pip
136
+ cmake
137
+ ninja
138
+
139
+ - name : Install fypp
140
+ run : pip install fypp
141
+
95
142
# Build and test with external BLAS and LAPACK (OpenBLAS on MINGW64)
96
143
- name : Configure with CMake and OpenBLAS
97
- if : contains(matrix.msystem, 'MINGW64')
98
144
run : >-
99
145
PATH=$PATH:/mingw64/bin/ cmake
100
146
-Wdev
@@ -110,23 +156,20 @@ jobs:
110
156
CXX : g++
111
157
112
158
- name : CMake build with OpenBLAS
113
- if : contains(matrix.msystem, 'MINGW64')
114
159
run : PATH=$PATH:/mingw64/bin/ cmake --build build_openblas --parallel
115
160
116
161
- name : catch build fail
117
- if : contains(matrix.msystem, 'MINGW64') && failure()
162
+ if : failure()
118
163
run : PATH=$PATH:/mingw64/bin/ cmake --build build_openblas --verbose --parallel 1
119
164
120
165
- name : CTest with OpenBLAS
121
- if : contains(matrix.msystem, 'MINGW64')
122
166
run : PATH=$PATH:/mingw64/bin/ ctest --test-dir build_openblas --output-on-failure --parallel -V -LE quadruple_precision
123
167
124
168
- uses : actions/upload-artifact@v1
125
- if : contains(matrix.msystem, 'MINGW64') && failure()
169
+ if : failure()
126
170
with :
127
171
name : WindowsCMakeTestlog_openblas
128
172
path : build_openblas/Testing/Temporary/LastTest.log
129
173
130
174
- name : Install project with OpenBLAS
131
- if : contains(matrix.msystem, 'MINGW64')
132
175
run : PATH=$PATH:/mingw64/bin/ cmake --install build_openblas
0 commit comments