Skip to content

Commit

Permalink
[ci] set brew gcc-ar and ranlib
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Nov 11, 2024
1 parent c1f1e7f commit 68663be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ 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 @@ -156,7 +158,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_RANLIB="" && cat && make VERBOSE=1 && cd ..
mkdir build && cd build && cmake .. -DCMAKE_AR="gcc-ar-12" -DCMAKE_RANLIB="gcc-ranlib-12" && cat && make VERBOSE=1 && cd ..
otool -L ../bin/mcx
otool -L ../mcxlab/mcx.mex*
else
Expand Down

0 comments on commit 68663be

Please sign in to comment.