mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Re-add iOS checks to CI
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -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:
|
||||
|
||||
3
justfile
3
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)
|
||||
|
||||
Reference in New Issue
Block a user