Skip to content

Commit

Permalink
[WIP] No hope on fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-his committed Apr 8, 2024
1 parent be7b500 commit 3349a9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ jobs:
action: reactivecircus/android-emulator-runner@v2
with: |
api-level: 33
target: google_apis
arch: arm64-v8a
ram-size: 1024M
disk-size: 2048M
Expand Down
5 changes: 2 additions & 3 deletions scripts/build-apple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ ROOT="$(pwd)"
BUILD_DIR="$ROOT/platform-build"
mkdir $BUILD_DIR

# Build the android libraries in the jniLibs directory
cd "$ROOT/packages/codde_protocol/native/client" || exit
# Build static libs
for TARGET in \
aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim \
x86_64-apple-darwin aarch64-apple-darwin; do
rustup target add $TARGET
cargo build -r --target=$TARGET
cargo build -r --target=$TARGET --target-dir=target
done

# Create XCFramework zip
FRAMEWORK="CoddeProtocol.xcframework"
LIBNAME=libcodde_protocol.a
mkdir mac-lipo ios-sim-lipo
IOS_SIM_LIPO=ios-sim-lipo/$LIBNAME
MAC_LIPO=mac-lipo/$LIBNAME
IOS_SIM_LIPO=ios-sim-lipo/$LIBNAME
lipo -create -output $IOS_SIM_LIPO \
target/aarch64-apple-ios-sim/release/$LIBNAME \
target/x86_64-apple-ios/release/$LIBNAME
Expand Down

0 comments on commit 3349a9c

Please sign in to comment.