Skip to content

Commit d164fd7

Browse files
committed
ci:cmake: add macos runner
1 parent 6a00cd3 commit d164fd7

File tree

2 files changed

+37
-4
lines changed

2 files changed

+37
-4
lines changed

.github/workflows/cmake.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CMake CI
22

33
on:
44
push:
5-
paths-exclude:
5+
paths-ignore:
66
- '.github/workflows/make.yml'
77
- '.gitignore'
88
- 'README'
@@ -11,7 +11,7 @@ on:
1111
- '**Makefile'
1212
- 'SLmake.inc.example'
1313
pull_request:
14-
paths-exclude:
14+
paths-ignore:
1515
- '.github/workflows/make.yml'
1616
- '.gitignore'
1717
- 'README'
@@ -193,3 +193,36 @@ jobs:
193193

194194
- name: Install
195195
run: cmake --install build
196+
197+
198+
macos-real32:
199+
# just testing one precision to save time on MacOS runner
200+
runs-on: macos-latest
201+
202+
env:
203+
HOMEBREW_NO_INSTALL_CLEANUP: 1
204+
FC: gfortran-11
205+
206+
steps:
207+
208+
- name: Checkout ScaLAPACK
209+
uses: actions/checkout@v3
210+
211+
- name: Setup MPI
212+
run: brew install open-mpi
213+
214+
- name: CMake configuration
215+
run: >
216+
cmake -B build
217+
--install-prefix ${{ runner.temp }}
218+
-DBUILD_SINGLE=on -DBUILD_DOUBLE=off -DBUILD_COMPLEX=off -DBUILD_COMPLEX16=off
219+
-DMPIEXEC_PREFLAGS=${{ env.MPIEXEC_PREFLAGS }}
220+
221+
- name: Build
222+
run: cmake --build build --parallel
223+
224+
- name: Test
225+
run: ctest --test-dir build --schedule-random --output-on-failure --timeout 180
226+
227+
- name: Install
228+
run: cmake --install build

.github/workflows/make.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Makefile CI
22

33
on:
44
push:
5-
paths-exclude:
5+
paths-ignore:
66
- '.github/workflows/cmake.yml'
77
- '.gitignore'
88
- 'README'
@@ -12,7 +12,7 @@ on:
1212
- '**CMakeLists.txt'
1313
- '**.cmake'
1414
pull_request:
15-
paths-exclude:
15+
paths-ignore:
1616
- '.github/workflows/cmake.yml'
1717
- '.gitignore'
1818
- 'README'

0 commit comments

Comments
 (0)