Skip to content

Commit d7e833a

Browse files
committed
First stab at build and test on Ubuntu+fpm in CI
1 parent a878d03 commit d7e833a

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
jobs:
18+
19+
build:
20+
name: Build and test on Ubuntu using fpm
21+
runs-on: ubuntu-latest
22+
23+
env:
24+
FPM_FFLAGS: -I/usr/include/hdf5/serial
25+
FPM_LDFLAGS: -L/usr/lib/x86_64-linux-gnu/hdf5/serial
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
41+
42+
- name: Run tests
43+
run: fpm test

0 commit comments

Comments
 (0)