Re-add iOS checks to CI

This commit is contained in:
Jackson Coxson
2026-01-14 08:14:09 -07:00
parent bb64dc0b1c
commit 1db78e6a8d
2 changed files with 13 additions and 2 deletions

View File

@@ -30,8 +30,12 @@ jobs:
- name: Install rustup targets
run: |
rustup target add aarch64-apple-ios && \
rustup target add x86_64-apple-ios && \
rustup target add aarch64-apple-ios-sim && \
rustup target add aarch64-apple-darwin && \
rustup target add x86_64-apple-darwin && cargo install --force --locked bindgen-cli
rustup target add x86_64-apple-darwin && \
cargo install --force --locked bindgen-cli
- name: Build all Apple targets and examples/tools
run: |
@@ -44,6 +48,12 @@ jobs:
path: |
target/*apple*/release/libidevice_ffi.a
- name: Upload macOS+iOS XCFramework
uses: actions/upload-artifact@v4
with:
name: idevice-xcframework
path: swift/bundle.zip
- name: Upload C examples/tools
uses: actions/upload-artifact@v4
with:

View File

@@ -6,7 +6,7 @@ check-features:
ci-check: build-ffi-native build-tools-native build-cpp build-c
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt -- --check
macos-ci-check: ci-check
macos-ci-check: ci-check xcframework
cd tools && cargo build --release --target x86_64-apple-darwin
windows-ci-check: build-ffi-native build-tools-native build-cpp
@@ -57,6 +57,7 @@ xcframework: apple-build
apple-build: # requires a Mac
# iOS device build
BINDGEN_EXTRA_CLANG_ARGS="--sysroot=$(xcrun --sdk iphoneos --show-sdk-path)" \
IPHONEOS_DEPLOYMENT_TARGET=17.0 \
cargo build --release --target aarch64-apple-ios --features obfuscate
# iOS Simulator (arm64)