-
Notifications
You must be signed in to change notification settings - Fork 85
65 lines (48 loc) · 1.21 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: ci
on:
push:
paths:
- ".github/workflows/ci.yml"
- "fpm.toml"
- "**.f90"
pull_request:
paths:
- ".github/workflows/ci.yml"
- "fpm.toml"
- "**.f90"
env:
FPM_FFLAGS: -I/usr/include/hdf5/serial
FPM_LDFLAGS: -L/usr/lib/x86_64-linux-gnu/hdf5/serial
jobs:
build_and_test_debug_profile:
name: Build and test in debug mode
runs-on: ubuntu-latest
steps:
- uses: fortran-lang/setup-fpm@v4
with:
fpm-version: "v0.6.0"
- name: Install HDF5
run: |
sudo apt update
sudo apt install --no-install-recommends libhdf5-dev
- uses: actions/checkout@v2
- name: Compile
run: fpm build --profile debug
- name: Test
run: fpm test --profile debug
build_and_test_release_profile:
name: Build and test in release mode
runs-on: ubuntu-latest
steps:
- uses: fortran-lang/setup-fpm@v4
with:
fpm-version: "v0.6.0"
- name: Install HDF5
run: |
sudo apt update
sudo apt install --no-install-recommends libhdf5-dev
- uses: actions/checkout@v2
- name: Compile
run: fpm build --profile release
- name: Test
run: fpm test --profile release