diff --git a/.github/workflows/run_examples.yml b/.github/workflows/run_examples.yml index 8b96741..508c76a 100644 --- a/.github/workflows/run_examples.yml +++ b/.github/workflows/run_examples.yml @@ -24,11 +24,7 @@ jobs: run: | brew update brew install libffi - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/homebrew/opt/libffi/lib - export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/homebrew/opt/libffi/lib - ls -lah /opt/homebrew/opt/libffi/lib - name: Run example - run: | - echo $LD_LIBRARY_PATH - echo $DYLD_LIBRARY_PATH - go run examples/simple/cos/main_unix.go + run: go run examples/simple/cos/main_unix.go + env: + DYLD_FALLBACK_LIBRARY_PATH: /opt/homebrew/opt/libffi/lib