Skip to content

Commit 3f98462

Browse files
authored
[CI] Set DYLD_FALLBACK_LIBRARY_PATH in tests with Homebrew MPI (#831)
* [CI] Set `DYLD_FALLBACK_LIBRARY_PATH` in tests with Homebrew MPI Without this, in some situations libmpi may not be found by Julia. * [CI] `macos-latest` -> `macos-13` everywhere Better to be explicit about the version, since GitHub Actions doesn't provide a better way to distinguish between different architectures.
1 parent 77b935c commit 3f98462

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

.github/workflows/UnitTests.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
matrix:
3535
os:
36-
- macos-latest
36+
- macos-13
3737
- ubuntu-latest
3838
- windows-latest
3939
julia_version:
@@ -42,7 +42,7 @@ jobs:
4242
- "nightly"
4343
julia_arch: [x64, x86]
4444
exclude:
45-
- os: macos-latest
45+
- os: macos-13
4646
julia_arch: x86
4747
include:
4848
- os: macos-14
@@ -84,15 +84,15 @@ jobs:
8484
strategy:
8585
matrix:
8686
os:
87-
- macos-latest
87+
- macos-13
8888
- ubuntu-latest
8989
julia_version:
9090
- "1.6"
9191
- "1"
9292
- "nightly"
9393
julia_arch: [x64, x86]
9494
exclude:
95-
- os: macos-latest
95+
- os: macos-13
9696
julia_arch: x86
9797

9898
fail-fast: false
@@ -135,15 +135,26 @@ jobs:
135135
timeout-minutes: 20
136136
strategy:
137137
matrix:
138+
os:
139+
- macos-13
140+
- macos-14
138141
mpi:
139142
- mpich
140143
- openmpi
141144
julia_version:
142145
- "1"
146+
julia_arch:
147+
- "x64"
148+
- "aarch64"
149+
exclude:
150+
- os: macos-13
151+
julia_arch: "aarch64"
152+
- os: macos-14
153+
julia_arch: "x64"
143154

144155
fail-fast: false
145156

146-
runs-on: macos-latest
157+
runs-on: ${{ matrix.os }}
147158
env:
148159
JULIA_MPI_TEST_BINARY: system
149160
ZES_ENABLE_SYSMAN: 1 # https://github.com/open-mpi/ompi/issues/10142
@@ -153,13 +164,16 @@ jobs:
153164
uses: actions/checkout@v4
154165

155166
- name: Install MPI via homebrew
156-
run: brew install $MPI
167+
run: |
168+
brew install "${MPI}"
169+
echo "DYLD_FALLBACK_LIBRARY_PATH=$(brew --prefix ${MPI})/lib" >> "${GITHUB_ENV}"
157170
env:
158171
MPI: ${{ matrix.mpi }}
159172

160173
- uses: julia-actions/setup-julia@v1
161174
with:
162175
version: ${{ matrix.julia_version }}
176+
arch: ${{ matrix.julia_arch }}
163177

164178
- uses: julia-actions/cache@v1
165179
- name: add MPIPreferences
@@ -327,7 +341,7 @@ jobs:
327341
strategy:
328342
matrix:
329343
os:
330-
- macos-latest
344+
- macos-13
331345
- ubuntu-latest
332346
mpi: [mpitrampoline]
333347
julia_version:
@@ -338,7 +352,7 @@ jobs:
338352
- x64
339353
- x86
340354
exclude:
341-
- os: macos-latest
355+
- os: macos-13
342356
julia_arch: x86
343357

344358
fail-fast: false

0 commit comments

Comments
 (0)