3838 mingw-w64-${{ matrix.arch }}-python-setuptools
3939 mingw-w64-${{ matrix.arch }}-cmake
4040 mingw-w64-${{ matrix.arch }}-ninja
41- mingw-w64-${{ matrix.arch }}-openblas
4241
4342 - name : Setup msys POSIX environment
4443 uses : msys2/setup-msys2@v2
5756
5857 - name : Install fypp
5958 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
6261 - run : >-
6362 PATH=$PATH:/mingw64/bin/ cmake
6463 -Wdev
9291 - name : Install project
9392 run : PATH=$PATH:/mingw64/bin/ cmake --install build
9493
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+
95142 # Build and test with external BLAS and LAPACK (OpenBLAS on MINGW64)
96143 - name : Configure with CMake and OpenBLAS
97- if : contains(matrix.msystem, 'MINGW64')
98144 run : >-
99145 PATH=$PATH:/mingw64/bin/ cmake
100146 -Wdev
@@ -110,23 +156,20 @@ jobs:
110156 CXX : g++
111157
112158 - name : CMake build with OpenBLAS
113- if : contains(matrix.msystem, 'MINGW64')
114159 run : PATH=$PATH:/mingw64/bin/ cmake --build build_openblas --parallel
115160
116161 - name : catch build fail
117- if : contains(matrix.msystem, 'MINGW64') && failure()
162+ if : failure()
118163 run : PATH=$PATH:/mingw64/bin/ cmake --build build_openblas --verbose --parallel 1
119164
120165 - name : CTest with OpenBLAS
121- if : contains(matrix.msystem, 'MINGW64')
122166 run : PATH=$PATH:/mingw64/bin/ ctest --test-dir build_openblas --output-on-failure --parallel -V -LE quadruple_precision
123167
124168 - uses : actions/upload-artifact@v1
125- if : contains(matrix.msystem, 'MINGW64') && failure()
169+ if : failure()
126170 with :
127171 name : WindowsCMakeTestlog_openblas
128172 path : build_openblas/Testing/Temporary/LastTest.log
129173
130174 - name : Install project with OpenBLAS
131- if : contains(matrix.msystem, 'MINGW64')
132175 run : PATH=$PATH:/mingw64/bin/ cmake --install build_openblas
0 commit comments