File tree Expand file tree Collapse file tree 1 file changed +32
-18
lines changed Expand file tree Collapse file tree 1 file changed +32
-18
lines changed Original file line number Diff line number Diff line change 11name : ci
22
3- on :
4-
5- push :
6- paths :
7- - " .github/workflows/ci.yml"
8- - " fpm.toml"
9- - " **.f90"
10-
11- pull_request :
12- paths :
13- - " .github/workflows/ci.yml"
14- - " fpm.toml"
15- - " **.f90"
3+ on : [push, pull_request]
4+ paths :
5+ - " .github/workflows/ci.yml"
6+ - " fpm.toml"
7+ - " **.f90"
8+
9+ env :
10+ FPM_FFLAGS : -I/usr/include/hdf5/serial
11+ FPM_LDFLAGS : -L/usr/lib/x86_64-linux-gnu/hdf5/serial
1612
1713jobs :
1814
19- build :
20- name : Build and test on Ubuntu using fpm
15+ build_and_test_debug_profile :
16+ name : Build and test on Ubuntu using fpm under the debug profile
2117 runs-on : ubuntu-latest
2218
23- env :
24- FPM_FFLAGS : -I/usr/include/hdf5/serial
25- FPM_LDFLAGS : -L/usr/lib/x86_64-linux-gnu/hdf5/serial
19+ steps :
20+
21+ - uses : fortran-lang/setup-fpm@v4
22+ with :
23+ fpm-version : " v0.6.0"
24+
25+ - name : Install HDF5
26+ run : |
27+ sudo apt update
28+ sudo apt install --no-install-recommends libhdf5-dev
29+ - uses : actions/checkout@v2
30+
31+ - name : Compile
32+ run : fpm build --profile debug
33+
34+ - name : Test
35+ run : fpm test --profile debug
36+
37+ build_and_test_release_profile :
38+ name : Build and test on Ubuntu using fpm under the release profile
39+ runs-on : ubuntu-latest
2640
2741 steps :
2842
You can’t perform that action at this time.
0 commit comments