Skip to content

Commit f3fdd9d

Browse files
committed
ci: add back shared examples: mac,linux
1 parent 2cdfac9 commit f3fdd9d

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ jobs:
127127
- run: ctest --test-dir build --preset default
128128
- run: cmake --install build
129129

130+
- name: configure examples
131+
run: cmake -S Examples -B Examples/build -Dh5fortran_ROOT=~
132+
- name: build Examples
133+
run: cmake --build Examples/build
134+
- name: Test Examples
135+
- run: ctest --test-dir Examples/build -V
130136

131137
linux-build-shared:
132138
needs: [linux-shared, linux-build-static]
@@ -141,6 +147,13 @@ jobs:
141147
- run: ctest --test-dir build --preset default
142148
- run: cmake --install build
143149

150+
- name: configure examples
151+
run: cmake -S Examples -B Examples/build -Dh5fortran_ROOT=~
152+
- name: build Examples
153+
run: cmake --build Examples/build
154+
- name: Test Examples
155+
- run: ctest --test-dir Examples/build -V
156+
144157

145158
linux-gcc7:
146159
runs-on: ubuntu-18.04

.github/workflows/ci_macos.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,11 @@ jobs:
106106
- run: ctest --test-dir build --preset default
107107
- run: cmake --install build
108108

109-
- run: cmake -S Examples -B Examples/build -Dh5fortran_ROOT=~
110-
- run: cmake --build Examples/build
109+
- name: configure examples
110+
run: cmake -S Examples -B Examples/build -Dh5fortran_ROOT=~
111+
- name: build Examples
112+
run: cmake --build Examples/build
113+
- name: Test Examples
111114
- run: ctest --test-dir Examples/build -V
112115

113116

@@ -124,6 +127,9 @@ jobs:
124127
- run: ctest --test-dir build --preset default
125128
- run: cmake --install build
126129

127-
- run: cmake -S Examples -B Examples/build -Dh5fortran_ROOT=~
128-
- run: cmake --build Examples/build
130+
- name: configure examples
131+
run: cmake -S Examples -B Examples/build -Dh5fortran_ROOT=~
132+
- name: build Examples
133+
run: cmake --build Examples/build
134+
- name: Test Examples
129135
- run: ctest --test-dir Examples/build -V

.github/workflows/ci_windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,5 @@ jobs:
122122
- run: cmake --build build-shared
123123
- run: ctest --test-dir build-shared --preset default
124124
- run: cmake --install build-shared
125+
126+
# Example to come when CMake 3.22 released

0 commit comments

Comments
 (0)