-
-
Notifications
You must be signed in to change notification settings - Fork 3
114 lines (84 loc) · 2.41 KB
/
Copy pathci.yml
File metadata and controls
114 lines (84 loc) · 2.41 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: ci
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
CMAKE_BUILD_TYPE: RelWithDebInfo
on:
push:
paths:
- "**.c"
- "**.cpp"
- "**.f90"
- "**.F90"
- "**/CMakeLists.txt"
- "**.cmake"
- ".github/workflows/ci.yml"
- "!memcheck.cmake"
- "!coverage.cmake"
workflow_dispatch:
# avoid wasted runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
gcc-pkg:
timeout-minutes: 15
strategy:
matrix:
conf: [ { os: ubuntu-26.04, mpi: openmpi },
{ os: macos-latest, mpi: open-mpi } ]
# { os: ubuntu-24.04, mpi: mpich }, takes like 15 minutes, gives link time warnings
runs-on: ${{ matrix.conf.os }}
steps:
- &python
uses: actions/setup-python@v7
with:
python-version: '3.13'
- name: Python pkgs
run: pip install numpy h5py
- name: install MPI (Linux)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install --no-install-recommends lib${{ matrix.conf.mpi }}-dev libhdf5-${{ matrix.conf.mpi }}-dev
- name: Install HDF5-${{ matrix.conf.mpi }} and MPI (MacOS)
if: runner.os == 'macOS'
run: brew install hdf5-mpi ${{ matrix.conf.mpi }}
- name: GCC (macOS)
if: runner.os == 'macOS'
run: |
echo "CC=gcc-15" >> $GITHUB_ENV
echo "FC=gfortran-15" >> $GITHUB_ENV
- &checkout
uses: actions/checkout@v7
- name: build and test
run: cmake --workflow default
- name: install package
run: cmake --install build
- name: example build and test
run: cmake --workflow default
working-directory: example
gcc-build:
timeout-minutes: 15
strategy:
matrix:
conf: [ { os: ubuntu-26.04, mpi: openmpi } ]
runs-on: ${{ matrix.conf.os }}
steps:
- *python
- name: Python pkgs
run: pip install numpy h5py
- name: install MPI (Linux)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install --no-install-recommends lib${{ matrix.conf.mpi }}-dev
- *checkout
- name: build and test
run: cmake --workflow default
- name: install package
run: cmake --install build
- name: example build and test
env:
LD_LIBRARY_PATH: ${{ github.workspace }}/build/local/lib
run: cmake --workflow default
working-directory: example