Pin Rust commands to 1.92.0 and add tvOS targets to workflow
Seto Elkahfi committed
Mar 30, 2026 at 20:23 UTC
2751637e1b112f3f74fa74134e86d5f77525e9e1
2 files changed
+7
-7
.github/scripts/build-swift-xcframework.sh
+6
-6
@@ -15,14 +15,14 @@ BINDGEN="$ROOT_DIR/uniffi-bindgen/target/release/uniffi-bindgen"
15
16
mkdir -p "$DIST_DIR" "$PACKAGE_DIR/Sources/Onde" "$HEADERS_DIR"
17
18
-cargo build --manifest-path uniffi-bindgen/Cargo.toml --release
18
+cargo +1.92.0 build --manifest-path uniffi-bindgen/Cargo.toml --release
19
20
# Build staticlibs only. Avoid the cdylib link step; the XCFramework consumes .a slices.
21
-cargo rustc --target aarch64-apple-ios --release --lib --crate-type staticlib
22
-cargo rustc --target x86_64-apple-ios --release --lib --crate-type staticlib
23
-cargo rustc --target aarch64-apple-ios-sim --release --lib --crate-type staticlib
24
-cargo rustc --target aarch64-apple-darwin --release --lib --crate-type staticlib
25
-cargo rustc --target x86_64-apple-darwin --release --lib --crate-type staticlib
21
+cargo +1.92.0 rustc --target aarch64-apple-ios --release --lib --crate-type staticlib
22
+cargo +1.92.0 rustc --target x86_64-apple-ios --release --lib --crate-type staticlib
23
+cargo +1.92.0 rustc --target aarch64-apple-ios-sim --release --lib --crate-type staticlib
24
+cargo +1.92.0 rustc --target aarch64-apple-darwin --release --lib --crate-type staticlib
25
+cargo +1.92.0 rustc --target x86_64-apple-darwin --release --lib --crate-type staticlib
26
cargo +nightly rustc -Z build-std --target aarch64-apple-tvos --release --lib --crate-type staticlib
27
cargo +nightly rustc -Z build-std --target x86_64-apple-tvos --release --lib --crate-type staticlib
28
cargo +nightly rustc -Z build-std --target aarch64-apple-tvos-sim --release --lib --crate-type staticlib
.github/workflows/build-swift-xcframework.yml
+1
-1
@@ -25,7 +25,7 @@ jobs:
25
uses: dtolnay/rust-toolchain@nightly
26
with:
27
components: rust-src
28
- targets: aarch64-apple-tvos
28
+ targets: aarch64-apple-tvos,x86_64-apple-tvos,aarch64-apple-tvos-sim
29
30
- name: Verify Xcode
31
run: xcodebuild -version