forked from fortran-lang/stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.27 KB
/
fpm-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: fpm-deployment
on: [push, pull_request]
env:
GCC_V: "10"
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install fypp
run: pip install --upgrade fypp
- name: Generate stdlib-fpm package 🔧
run: |
bash ./ci/fpm-deployment.sh
- name: Install GFortran
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ env.GCC_V }} 100 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${{ env.GCC_V }} \
--slave /usr/bin/gcov gcov /usr/bin/gcov-${{ env.GCC_V }}
- name: Install fpm latest release
uses: fortran-lang/setup-fpm@v3
with:
fpm-version: 'v0.4.0'
- name: Run fpm test ⚙
run: |
cp -r stdlib-fpm stdlib-fpm-test
cd stdlib-fpm-test
fpm test
fpm test --profile release
# Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch.
- name: Deploy 🚀
uses: JamesIves/[email protected]
if: github.event_name != 'pull_request'
with:
BRANCH: stdlib-fpm
FOLDER: stdlib-fpm