-
-
Notifications
You must be signed in to change notification settings - Fork 23
67 lines (50 loc) · 1.37 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
63
64
65
66
67
name: build
env:
CMAKE_TLS_VERIFY: true
HOMEBREW_NO_INSTALL_CLEANUP: 1
CTEST_NO_TESTS_ACTION: error
CTEST_PARALLEL_LEVEL: 0
CMAKE_BUILD_PARALLEL_LEVEL: 4
CMAKE_INSTALL_PREFIX: ~/libs
CMAKE_PREFIX_PATH: ~/libs
on:
push:
paths:
- "scripts/CMakeLists.txt"
- "cmake/libraries.json"
- ".github/workflows/ci_build.yml"
jobs:
linux_mac:
timeout-minutes: 20
strategy:
matrix:
os: [ubuntu-latest]
shared: [true, false]
include:
- os: macos-latest
shared: false
runs-on: ${{ matrix.os}}
steps:
- uses: actions/checkout@v4
- name: GCC 14 (macOS)
if: runner.os == 'macOS'
run: echo "FC=gfortran-14" >> $GITHUB_ENV
- name: Configure HDF5 library
run: >-
cmake
-S scripts -B scripts/build
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
- name: Build/install HDF5
run: cmake --build scripts/build
- name: configure h5fortran
run: >-
cmake --preset default
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
- name: build / test h5fortran
run: cmake --workflow --preset default
- name: install h5fortran
run: cmake --install build
- name: example workflow
run: cmake -S example -B example/build
- run: cmake --build example/build
- run: ctest --test-dir example/build -V