Skip to content

Commit 75666fe

Browse files
authored
Merge pull request #87 from milancurcic/ci
CI
2 parents a878d03 + ca9c64a commit 75666fe

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/ci.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: ci
2+
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"
16+
17+
env:
18+
FPM_FFLAGS: -I/usr/include/hdf5/serial
19+
FPM_LDFLAGS: -L/usr/lib/x86_64-linux-gnu/hdf5/serial
20+
21+
jobs:
22+
23+
build_and_test_debug_profile:
24+
name: Build and test in debug mode
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
29+
- uses: fortran-lang/setup-fpm@v4
30+
with:
31+
fpm-version: "v0.6.0"
32+
33+
- name: Install HDF5
34+
run: |
35+
sudo apt update
36+
sudo apt install --no-install-recommends libhdf5-dev
37+
- uses: actions/checkout@v2
38+
39+
- name: Compile
40+
run: fpm build --profile debug
41+
42+
- name: Test
43+
run: fpm test --profile debug
44+
45+
build_and_test_release_profile:
46+
name: Build and test in release mode
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
51+
- uses: fortran-lang/setup-fpm@v4
52+
with:
53+
fpm-version: "v0.6.0"
54+
55+
- name: Install HDF5
56+
run: |
57+
sudo apt update
58+
sudo apt install --no-install-recommends libhdf5-dev
59+
- uses: actions/checkout@v2
60+
61+
- name: Compile
62+
run: fpm build --profile release
63+
64+
- name: Test
65+
run: fpm test --profile release

0 commit comments

Comments
 (0)