Skip to content

Commit 14ed8c2

Browse files
author
Carlos Une
authored
Merge pull request #3 from brocolis/master
Add CI: fpm.yml (ubuntu)
2 parents ddff9e5 + 0d15953 commit 14ed8c2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/fpm.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: fpm
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
gfortran:
7+
runs-on: ubuntu-latest
8+
9+
env:
10+
FC: gfortran
11+
GCC_V: 10
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v1
16+
17+
- name: Install gfortran
18+
run: |
19+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
20+
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
21+
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
22+
23+
- name: Install fpm
24+
uses: fortran-lang/setup-fpm@v3
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Build minpack
29+
run: |
30+
gfortran --version
31+
fpm build
32+
33+
- name: Run examples
34+
run: |
35+
gfortran --version
36+
fpm run --example example_lmder1
37+
fpm run --example example_lmdif1
38+
fpm run --example example_primes

0 commit comments

Comments
 (0)