23
23
shell : msys2 {0}
24
24
steps :
25
25
- uses : actions/checkout@v2
26
- - name : Setup environment
26
+ - name : Setup MinGW native environment
27
27
uses : msys2/setup-msys2@v2
28
+ if : contains(matrix.msystem, 'MINGW')
28
29
with :
29
30
msystem : ${{ matrix.msystem }}
30
31
update : false
@@ -33,20 +34,34 @@ jobs:
33
34
mingw-w64-${{ matrix.arch }}-gcc
34
35
mingw-w64-${{ matrix.arch }}-gcc-fortran
35
36
mingw-w64-${{ matrix.arch }}-python
36
- mingw-w64-${{ matrix.arch }}-python-fypp
37
+ mingw-w64-${{ matrix.arch }}-python-pip
38
+ mingw-w64-${{ matrix.arch }}-python-setuptools
37
39
mingw-w64-${{ matrix.arch }}-cmake
38
40
mingw-w64-${{ matrix.arch }}-ninja
39
- unzip
40
- zip
41
-
41
+ - name : Setup msys POSIX environment
42
+ uses : msys2/setup-msys2@v2
43
+ if : contains(matrix.msystem, 'MSYS')
44
+ with :
45
+ msystem : MSYS
46
+ update : false
47
+ install : >-
48
+ git
49
+ mingw-w64-x86_64-gcc
50
+ mingw-w64-x86_64-gcc-fortran
51
+ python
52
+ python-pip
53
+ cmake
54
+ ninja
55
+ - name : Install fypp
56
+ run : pip install fypp
42
57
- run : >-
43
58
PATH=$PATH:/mingw64/bin/ cmake
44
59
-Wdev
45
- -B build
46
- -DCMAKE_BUILD_TYPE=Debug
47
- -DCMAKE_Fortran_FLAGS_DEBUG="-Wall -Wextra -Wimplicit-interface -fPIC -g -fcheck=all -fbacktrace"
48
- -DCMAKE_MAXIMUM_RANK:String=4
49
- -DCMAKE_INSTALL_PREFIX=$PWD/_dist
60
+ -B build
61
+ -DCMAKE_BUILD_TYPE=Debug
62
+ -DCMAKE_Fortran_FLAGS_DEBUG="-Wall -Wextra -Wimplicit-interface -fPIC -g -fcheck=all -fbacktrace"
63
+ -DCMAKE_MAXIMUM_RANK:String=4
64
+ -DCMAKE_INSTALL_PREFIX=$PWD/_dist
50
65
env:
51
66
FC: gfortran
52
67
CC: gcc
0 commit comments