Skip to content

Commit

Permalink
[ci] Specify xcode sdk for create-sdk-mac.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 29, 2023
1 parent 8722a32 commit 1b469b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ci/create-sdk-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

: "$SDK_DIR"
: "$SCORE_DIR"
: "$XCODE_ROOT"

export OSSIA_SDK="/opt/ossia-sdk-x86_64"
export DST="$SDK_DIR"
Expand All @@ -15,7 +16,7 @@ mkdir -p "$LIB/cmake/score"
export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $SCRIPTDIR/create-sdk-common.sh

export XCODE=/Applications/Xcode.app/Contents/Developer
export XCODE=$XCODE_ROOT/Contents/Developer
export XCODE_MACOS_SDK=$XCODE/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
export XCODE_MACOS_FRAMEWORKS=$XCODE_MACOS_SDK/System/Library/Frameworks
export XCODE_TOOLCHAIN=$XCODE/Toolchains/XcodeDefault.xctoolchain
Expand Down
3 changes: 2 additions & 1 deletion ci/osx-package.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export OSSIA_SDK=/opt/ossia-sdk-x86_64
export SCORE_DIR="$PWD"
export SDK_DIR="$PWD/SDK"
export PATH=/usr/local/bin:$PATH
sudo xcode-select -s /Applications/Xcode_15.0.app
export XCODE_ROOT=/Applications/Xcode_15.0.app
sudo xcode-select -s $XCODE_ROOT

xcrun /usr/local/bin/cninja macos-release -- \
-DOSSIA_SDK="$OSSIA_SDK" \
Expand Down

0 comments on commit 1b469b9

Please sign in to comment.