Skip to content

Commit 1090448

Browse files
committed
ci consolidate workflows
1 parent 4b1e113 commit 1090448

File tree

4 files changed

+27
-35
lines changed

4 files changed

+27
-35
lines changed

.github/workflows/ci_linux.yml renamed to .github/workflows/ci.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: ci_linux
1+
name: ci
22

33
on:
44
push:
55
paths:
66
- "**/CMakeLists.txt"
77
- "**.cmake"
88
- "**.f90"
9-
- ".github/workflows/ci_linux.yml"
9+
- ".github/workflows/ci.yml"
1010

1111
jobs:
1212

13-
cmake:
13+
linux:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
@@ -29,3 +29,23 @@ jobs:
2929
- name: test examples
3030
run: ctest -V
3131
working-directory: Examples/build
32+
33+
34+
mac:
35+
needs: linux
36+
runs-on: macos-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
40+
- run: brew install gcc netcdf ninja
41+
42+
- run: ctest -S setup.cmake -VV
43+
44+
- name: build examples
45+
run: |
46+
cmake -B Examples/build -S Examples
47+
cmake --build Examples/build
48+
49+
- name: test examples
50+
run: ctest -V
51+
working-directory: Examples/build

.github/workflows/ci_mac.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/ci_linux_meson.yml renamed to .github/workflows/ci_meson.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: ci_linux_meson
1+
name: ci_meson
22

33
on:
44
push:
55
paths:
66
- "**/meson.build"
7-
- ".github/workflows/ci_linux_meson.yml"
7+
- ".github/workflows/ci_meson.yml"
88

99

1010
jobs:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
[![DOI](https://zenodo.org/badge/229812591.svg)](https://zenodo.org/badge/latestdoi/229812591)
44
[![CDash](./archive/cdash.png)](https://my.cdash.org/index.php?project=nc4fortran)
55

6-
![ci_linux](https://github.com/geospace-code/nc4fortran/workflows/ci_linux/badge.svg)
7-
![ci_mac](https://github.com/geospace-code/nc4fortran/workflows/ci_mac/badge.svg)
6+
![ci](https://github.com/geospace-code/nc4fortran/workflows/ci/badge.svg)
7+
![ci_meson](https://github.com/geospace-code/nc4fortran/workflows/ci_meson/badge.svg)
88

99
Simple, robust, thin HDF5 polymorphic read/write interface.
1010
For HDF5 see [h5fortran](https://github.com/geospace-code/h5fortran).

0 commit comments

Comments
 (0)