From 1db78e6a8d3b247183da91ae68b4e43379957339 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Wed, 14 Jan 2026 08:14:09 -0700 Subject: [PATCH] Re-add iOS checks to CI --- .github/workflows/ci.yml | 12 +++++++++++- justfile | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4dc6bc..dcee207 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/justfile b/justfile index 9e5d593..1166802 100644 --- a/justfile +++ b/justfile @@ -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)