chore: sdk-ffi apple - try building the framework on x86_64 outside of Xcode

This commit is contained in:
Stefan Ceriu
2022-07-01 07:39:01 +03:00
committed by Benjamin Kampmann
parent 399bbc25e9
commit 65654de7eb
3 changed files with 5 additions and 2 deletions

View File

@@ -161,6 +161,9 @@ jobs:
# keep in sync with uniffi dependency in Cargo.toml's
args: uniffi_bindgen --version ^0.18
- name: Generate .xcframework
run: sh bindings/apple/debug_build_xcframework.sh x86_64 ci
- name: Run XCTests
run: |
xcodebuild test \

View File

@@ -10,7 +10,7 @@
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
<ActionContent
title = "Run Script"
scriptText = "PATH=~/.cargo/bin:${PATH}&#10;echo $ARCHS&#10;sh $PROJECT_DIR/debug_build_xcframework.sh &quot;$ARCHS&quot; CI&#10;">
scriptText = "#PATH=~/.cargo/bin:${PATH}&#10;echo $ARCHS&#10;#sh $PROJECT_DIR/debug_build_xcframework.sh &quot;$ARCHS&quot; CI&#10;">
<EnvironmentBuildable>
<BuildableReference
BuildableIdentifier = "primary"

View File

@@ -10,7 +10,7 @@ if [ $# -eq 2 ]; then
echo "Running CI build"
IS_CI=true
ARCHS=( $1 )
ACTIVE_ARCH=${ARCHS[1]}
ACTIVE_ARCH=${ARCHS[0]}
elif [ $# -eq 1 ]; then
echo "Running debug build"
ARCHS=( $1 )