Skip to content

Commit 4400cec

Browse files
authored
Fix macOS CI: DYLD Lib Path (#587)
By default, `/usr/local/lib` should be in `DYLD_LIBRARY_PATH`, but somehow we suddenly got errors of the form ``` dyld[18636]: Library not loaded: @rpath/libamrex_3d.dylib Referenced from: <03D20F94-E6DD-3FA1-A198-5DDEE51D6D22> /usr/local/bin/impactx.MPI.OMP.DP.OPMD Reason: no LC_RPATH's found /Users/runner/work/_temp/237ddb9c-4150-447e-96f7-89d33bd16a27.sh: line 4: 18636 Abort trap: 6 impactx.MPI.OMP.DP.OPMD examples/fodo/input_fodo.in algo.particle_shape = 1 ``` Adding it manually now.
1 parent c46c838 commit 4400cec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
run: |
8383
sudo cmake --build build --target install
8484
85+
export DYLD_LIBRARY_PATH=/usr/local/lib:${DYLD_LIBRARY_PATH}
86+
8587
impactx.MPI.OMP.DP.OPMD examples/fodo/input_fodo.in algo.particle_shape = 1 || \
8688
{ cat Backtrace.0.0; exit 1; }
8789
impactx.MPI.OMP.DP.OPMD examples/fodo/input_fodo.in algo.particle_shape = 2 || \

0 commit comments

Comments
 (0)