Skip to content

Commit

Permalink
build mcxstudio on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 12, 2023
1 parent 9f3c3c2 commit 6820c04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Build All
strategy:
matrix:
os: [ubuntu-20.04, macos-11, macos-12, windows-2019]
os: [ubuntu-20.04, macos-11, windows-2019]
runs-on: ${{ matrix.os }}
defaults:
run:
Expand All @@ -40,6 +40,7 @@ jobs:
echo "$PWD/Xcode.app/Contents/Developer/usr/bin" >> $GITHUB_PATH
echo "$PWD/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/" >> $GITHUB_PATH
echo "SDKROOT=$PWD/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" >> $GITHUB_ENV
brew install --cask lazarus
brew install octave
brew link --force libomp
- name: Install dependencies (Windows only)
Expand Down Expand Up @@ -155,7 +156,6 @@ jobs:
objdump -p ../bin/mcx.exe | grep "DLL Name:"
fi
- name: Build mcxstudio
if: ${{ runner.os != 'macOS' }}
run: |
cd mcxstudio
lazbuild --build-mode=release mcxshow.lpi
Expand Down Expand Up @@ -190,8 +190,8 @@ jobs:
run: |
if [[ "$RUNNER_OS" == "macOS" ]]; then
cp -a mcxstudio/debug/mcxstudio.app bin
#cp -a mcxstudio/mcxshow.app bin
#cp -a mcxstudio/mcxviewer.app bin
cp -a mcxstudio/mcxshow.app bin
cp -a mcxstudio/mcxviewer.app bin
elif [[ "$RUNNER_OS" == "Windows" ]]; then
rm -rf octave cuda_installer* bin/mcx.lib bin/mcx.exp
strip -S bin/*
Expand Down

0 comments on commit 6820c04

Please sign in to comment.