Skip to content

Commit

Permalink
[CI] Set DYLD_FALLBACK_LIBRARY_PATH in tests with Homebrew MPI (#831)
Browse files Browse the repository at this point in the history
* [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.
  • Loading branch information
giordano authored Apr 29, 2024
1 parent 77b935c commit 3f98462
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/UnitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
os:
- macos-latest
- macos-13
- ubuntu-latest
- windows-latest
julia_version:
Expand All @@ -42,7 +42,7 @@ jobs:
- "nightly"
julia_arch: [x64, x86]
exclude:
- os: macos-latest
- os: macos-13
julia_arch: x86
include:
- os: macos-14
Expand Down Expand Up @@ -84,15 +84,15 @@ jobs:
strategy:
matrix:
os:
- macos-latest
- macos-13
- ubuntu-latest
julia_version:
- "1.6"
- "1"
- "nightly"
julia_arch: [x64, x86]
exclude:
- os: macos-latest
- os: macos-13
julia_arch: x86

fail-fast: false
Expand Down Expand Up @@ -135,15 +135,26 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
os:
- macos-13
- macos-14
mpi:
- mpich
- openmpi
julia_version:
- "1"
julia_arch:
- "x64"
- "aarch64"
exclude:
- os: macos-13
julia_arch: "aarch64"
- os: macos-14
julia_arch: "x64"

fail-fast: false

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

- name: Install MPI via homebrew
run: brew install $MPI
run: |
brew install "${MPI}"
echo "DYLD_FALLBACK_LIBRARY_PATH=$(brew --prefix ${MPI})/lib" >> "${GITHUB_ENV}"
env:
MPI: ${{ matrix.mpi }}

- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia_version }}
arch: ${{ matrix.julia_arch }}

- uses: julia-actions/cache@v1
- name: add MPIPreferences
Expand Down Expand Up @@ -327,7 +341,7 @@ jobs:
strategy:
matrix:
os:
- macos-latest
- macos-13
- ubuntu-latest
mpi: [mpitrampoline]
julia_version:
Expand All @@ -338,7 +352,7 @@ jobs:
- x64
- x86
exclude:
- os: macos-latest
- os: macos-13
julia_arch: x86

fail-fast: false
Expand Down

0 comments on commit 3f98462

Please sign in to comment.