File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments