Skip to content

Commit 573e133

Browse files
committed
ci: fpm own workflow
1 parent 2e12e0a commit 573e133

File tree

4 files changed

+34
-23
lines changed

4 files changed

+34
-23
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -152,23 +152,3 @@ jobs:
152152
run: cmake --build example/build --parallel
153153
- name: Test Examples
154154
run: ctest --test-dir example/build -V
155-
156-
linux-fpm:
157-
runs-on: ubuntu-latest
158-
timeout-minutes: 15
159-
160-
steps:
161-
162-
- uses: fortran-lang/setup-fpm@v4
163-
with:
164-
github-token: ${{ secrets.GITHUB_TOKEN }}
165-
166-
- name: install hdf5
167-
run: |
168-
sudo apt update
169-
sudo apt install --no-install-recommends libhdf5-dev
170-
171-
- uses: actions/checkout@v2
172-
173-
- run: fpm build
174-
- run: fpm test

.github/workflows/ci_fpm.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ci_fpm
2+
3+
4+
on:
5+
push:
6+
paths:
7+
- "fpm.toml"
8+
- ".github/workflows/ci_fpm.yml"
9+
release:
10+
types: [published]
11+
12+
13+
jobs:
14+
15+
linux:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 15
18+
19+
steps:
20+
21+
- uses: fortran-lang/setup-fpm@v4
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: install hdf5
26+
run: |
27+
sudo apt update
28+
sudo apt install --no-install-recommends libhdf5-dev
29+
30+
- uses: actions/checkout@v2
31+
32+
- run: fpm fpm --flag -I/usr/include/hdf5/serial --link-flag -L/usr/lib/x86_64-linux-gnu/hdf5/serial build
33+
- run: fpm test

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ cmake -B build -DBUILD_TESTING=off
9898

9999
### Fortran Package Manager (fpm)
100100

101-
FPM requires HDF5 ≥ 1.10.6.
102-
103101
```sh
104102
fpm build
105103
fpm test

fpm.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = "4.6.3"
66
[build]
77
auto-tests = false
88
external-modules = ["hdf5", "h5lt"]
9-
link = ["hdf5_hl_fortran", "hdf5_fortran", "hdf5_hl", "hdf5"]
9+
link = ["hdf5hl_fortran", "hdf5_fortran", "hdf5_hl", "hdf5"]
1010

1111
[install]
1212
library = true

0 commit comments

Comments
 (0)