@@ -34,17 +34,36 @@ jobs:
3434 wget $GCC_DOWNLOAD -O mingw-w64.zip
3535 unzip mingw-w64.zip
3636
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+
3762 - name : Fetch Git for Windows
3863 shell : msys2 {0}
3964 run : |
4065 wget $GIT_DOWNLOAD -O MinGit.zip
4166 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
4867
4968 - name : Fetch EnVar Plugin for NSIS
5069 shell : msys2 {0}
@@ -71,17 +90,12 @@ jobs:
7190 with :
7291 name : quickstart-fortran-installer
7392 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
8093
8194 - name : Upload to release
95+ if : ${{ github.event_name == 'release' }}
8296 uses : svenstaro/upload-release-action@v2
8397 with :
8498 repo_token : ${{ secrets.GITHUB_TOKEN }}
8599 file : quickstart-fortran-installer.exe
86- tag : ${{ github.event_name == 'release' && github. ref || 'Latest' }}
100+ tag : ${{ github.ref }}
87101 overwrite : true
0 commit comments