11name : fpm-deployment
22
3- # When a PR occurs, the fpm package of `stdlib` will be generated.
43on : [push, pull_request]
54env :
65 GCC_V : " 10"
109 runs-on : ubuntu-latest
1110
1211 steps :
13- - name : Git clone fpm branch (stdlib-fpm)
14- run : git clone -b stdlib-fpm https://github.com/fortran-lang/stdlib.git
15-
16- - name : Checkout stdlib code (master)
17- uses : actions/checkout@v2
18- with :
19- path : " stdlib-master"
12+ - name : Checkout 🛎️
13+ uses : actions/checkout@v2.3.1
2014
2115 - name : Set up Python 3.x
2216 uses : actions/setup-python@v1
@@ -26,35 +20,32 @@ jobs:
2620 - name : Install fypp
2721 run : pip install --upgrade fypp
2822
29- - name : Generate stdlib-fpm package
23+ - name : Generate stdlib-fpm package 🔧
3024 run : |
31- ls
32- sh ./stdlib-master/ci/fpm-deployment.sh
25+ sh ./ci/fpm-deployment.sh
3326
3427 - name : Install GFortran
3528 run : |
3629 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ env.GCC_V }} 100 \
3730 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${{ env.GCC_V }} \
3831 --slave /usr/bingcov gcov /usr/bin/gcov-${{ env.GCC_V }}
32+
3933 - name : Install fpm latest release
4034 uses : fortran-lang/setup-fpm@v3
4135 with :
4236 github-token : ${{ secrets.GITHUB_TOKEN }}
4337
44- - name : Run fpm test
38+ - name : Run fpm test ⚙
4539 run : |
46- cp -r stdlib stdlib-fpm-test
40+ cp -r stdlib-fpm stdlib-fpm-test
4741 cd stdlib-fpm-test
4842 fpm test
49- - name : Run fpm test (release)
50- run : |
51- cd stdlib-fpm-test
5243 fpm test --profile release
44+
5345 # Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch.
54- - name : Deploy
55- uses : JamesIves/github-pages-deploy-action@releases/v3
46+ - name : Deploy 🚀
47+ uses : JamesIves/github-pages-deploy-action@4.1.5
5648 if : github.event_name != 'pull_request'
5749 with :
58- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5950 BRANCH : stdlib-fpm
60- FOLDER : stdlib
51+ FOLDER : stdlib-fpm
0 commit comments