Skip to content

Commit

Permalink
[ci] set brew gcc-ar and ranlib with full path
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Nov 11, 2024
1 parent 68663be commit 35fcb15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:
conda install octave
brew link --force libomp
brew install --cask lazarus
which gcc-ar-12
which gcc-ranlib-12
echo "/Applications/Lazarus/" >> $GITHUB_PATH
- name: Install dependencies (Windows only)
if: ${{ runner.os == 'Windows' }}
Expand Down Expand Up @@ -158,7 +156,7 @@ jobs:
make AR=g++ BACKEND=cudastatic USERLINKOPT='lib/libzmat.a -Wl,-Bstatic -lgomp -Wl,-Bdynamic'
ldd ../bin/mcx
elif [[ "$RUNNER_OS" == "macOS" ]]; then
mkdir build && cd build && cmake .. -DCMAKE_AR="gcc-ar-12" -DCMAKE_RANLIB="gcc-ranlib-12" && cat && make VERBOSE=1 && cd ..
mkdir build && cd build && cmake .. -DCMAKE_AR="/usr/local/bin/gcc-ar-12" -DCMAKE_RANLIB="/usr/local/bin/gcc-ranlib-12" && cat && make VERBOSE=1 && cd ..
otool -L ../bin/mcx
otool -L ../mcxlab/mcx.mex*
else
Expand Down

0 comments on commit 35fcb15

Please sign in to comment.