-
-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (45 loc) · 1.26 KB
/
ci_build.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
name: build
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 0
CTEST_NO_TESTS_ACTION: error
CMAKE_INSTALL_PREFIX: ~/libs
CMAKE_PREFIX_PATH: ~/libs
on:
push:
paths:
- "scripts/CMakeLists.txt"
- "cmake/libraries.json"
- ".github/workflows/ci_build.yml"
jobs:
linux:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: prereqs (Linux)
if: runner.os == 'Linux'
run: sudo apt install --no-install-recommends libopenmpi-dev
- uses: actions/checkout@v4
- name: Configure HDF5-MPI
run: cmake -B build
working-directory: scripts
- name: Build/install HDF5
run: cmake --build build
working-directory: scripts
- name: configure h5fortran
run: cmake --preset default
- name: build h5fortran
run: cmake --build --preset default
- name: test h5fortran
run: ctest --preset default
- name: install h5fortran
run: cmake --install build
- name: configure examples
run: cmake --preset default
working-directory: example
- name: build Examples
run: cmake --build --preset default
working-directory: example
- name: Test Examples
run: ctest --preset default
working-directory: example