1
1
name : fpm-deployment
2
2
3
3
on : [push, pull_request]
4
- env :
5
- GCC_V : " 10"
6
4
7
5
jobs :
8
- Build :
9
- runs-on : ubuntu-latest
6
+ test :
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ fail-fast : false
10
+ matrix :
11
+ include :
12
+ - os : ubuntu-latest
13
+ toolchain : {compiler: gcc, version: 13, flags: ['-cpp -O3']}
10
14
11
15
steps :
12
- - name : Checkout 🛎️
13
- uses : actions/checkout@v2.3.1
14
-
15
- - name : Set up Python 3.x
16
- uses : actions/setup-python@v1
17
- with :
18
- python-version : 3.x
19
-
20
- - name : Install fypp
21
- run : pip install --upgrade fypp
22
-
23
- - name : Generate stdlib-fpm package 🔧
24
- run : |
25
- bash ./ci/fpm-deployment.sh
26
-
27
- - name : Install GFortran
28
- run : |
29
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ env.GCC_V }} 100 \
30
- --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${{ env.GCC_V }} \
31
- --slave /usr/bin/gcov gcov /usr/bin/gcov-${{ env.GCC_V }}
32
-
33
- - name : Install fpm latest release
34
- uses : fortran-lang/setup-fpm@v5
35
- with :
36
- fpm-version : ' v0.10.0'
37
-
38
- - name : Run fpm test ⚙
39
- run : |
40
- cp -r stdlib-fpm stdlib-fpm-test
41
- cd stdlib-fpm-test
42
- fpm test
43
- fpm test --profile release
16
+ - name : Checkout code
17
+ uses : actions/checkout@v2.3.1
18
+
19
+ - name : Set up Python 3.x
20
+ uses : actions/setup-python@v1
21
+ with :
22
+ python-version : 3.x
23
+
24
+ - name : Install requirements
25
+ run : pip install --upgrade -r config/requirements.txt
26
+
27
+ - uses : fortran-lang/setup-fortran@main
28
+ id : setup-fortran
29
+ with :
30
+ compiler : ${{ matrix.toolchain.compiler }}
31
+ version : ${{ matrix.toolchain.version }}
32
+
33
+ - name : Setup Fortran Package Manager
34
+ uses : fortran-lang/setup-fpm@v5
35
+ with :
36
+ fpm-version : ' v0.10.0'
37
+
38
+ - run : |
39
+ python config/fypp_deployment.py --deploy_stdlib_fpm
40
+ fpm test --flag "${{ join(matrix.toolchain.flags, ' ') }}"
44
41
45
42
# Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch.
46
- - name : Deploy 🚀
47
- uses : JamesIves/github-pages-deploy-action@4.1.5
48
- if : github.event_name != 'pull_request'
49
- with :
50
- BRANCH : stdlib-fpm
51
- FOLDER : stdlib-fpm
43
+ # might no longer be needed
44
+ - name : Deploy 🚀
45
+ uses : JamesIves/github-pages-deploy-action@4.1.5
46
+ if : github.event_name != 'pull_request'
47
+ with :
48
+ BRANCH : stdlib-fpm
49
+ FOLDER : stdlib-fpm
0 commit comments