@@ -34,17 +34,36 @@ jobs:
34
34
wget $GCC_DOWNLOAD -O mingw-w64.zip
35
35
unzip mingw-w64.zip
36
36
37
+ - name : Add Mingw-w64 to path to build fpm
38
+ run : echo "$pwd\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
39
+
40
+ - name : Checkout fpm code
41
+ uses : actions/checkout@v2
42
+ with :
43
+ repository : fortran-lang/fpm
44
+ ref : v0.5.0
45
+ path : fpm-src
46
+
47
+ - name : Install fpm for bootstrapping
48
+ uses : fortran-lang/setup-fpm@v3
49
+ with :
50
+ fpm-version : ' v0.5.0'
51
+
52
+ - name : Build fpm from source with OpenMP
53
+ run : |
54
+ mkdir fpm
55
+ gfortran --version
56
+ fpm run -C fpm-src --profile release --flag "-fopenmp --static" --runner copy -- ..\fpm\
57
+
58
+ - name : Remove fpm src
59
+ shell : msys2 {0}
60
+ run : rm -rf fpm-src
61
+
37
62
- name : Fetch Git for Windows
38
63
shell : msys2 {0}
39
64
run : |
40
65
wget $GIT_DOWNLOAD -O MinGit.zip
41
66
unzip MinGit.zip -d MinGit
42
-
43
- - name : Fetch FPM
44
- shell : msys2 {0}
45
- run : |
46
- mkdir fpm
47
- wget $FPM_DOWNLOAD -O fpm/fpm.exe
48
67
49
68
- name : Fetch EnVar Plugin for NSIS
50
69
shell : msys2 {0}
@@ -71,17 +90,12 @@ jobs:
71
90
with :
72
91
name : quickstart-fortran-installer
73
92
path : quickstart-fortran-installer.exe
74
-
75
- - name : Create/Update tag
76
- if : ${{ github.event_name != 'release' }}
77
- run : |
78
- git tag --force 'Latest' ${{ github.sha }}
79
- git push --tags --force
80
93
81
94
- name : Upload to release
95
+ if : ${{ github.event_name == 'release' }}
82
96
uses : svenstaro/upload-release-action@v2
83
97
with :
84
98
repo_token : ${{ secrets.GITHUB_TOKEN }}
85
99
file : quickstart-fortran-installer.exe
86
- tag : ${{ github.event_name == 'release' && github. ref || 'Latest' }}
100
+ tag : ${{ github.ref }}
87
101
overwrite : true
0 commit comments