Intel is dead
Seto Elkahfi committed
Mar 30, 2026 at 20:27 UTC
95d4cdde500fa1b46ff7aa89330d4850da0d8e3d
2 files changed
+5
-8
.github/scripts/build-swift-xcframework.sh
+3
-6
@@ -19,12 +19,9 @@ 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 +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
22
cargo +1.92.0 rustc --target aarch64-apple-ios-sim --release --lib --crate-type staticlib
23
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
24
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
25
cargo +nightly rustc -Z build-std --target aarch64-apple-tvos-sim --release --lib --crate-type staticlib
26
27
"$BINDGEN" generate "$ROOT_DIR/target/aarch64-apple-ios/release/libonde.a" --language swift --out-dir "$PACKAGE_DIR/Sources/Onde"
@@ -32,11 +29,11 @@ cargo +nightly rustc -Z build-std --target aarch64-apple-tvos-sim --release --li
29
cp "$PACKAGE_DIR/Sources/Onde/ondeFFI.h" "$HEADERS_DIR/ondeFFI.h"
30
cp "$PACKAGE_DIR/Sources/Onde/ondeFFI.modulemap" "$HEADERS_DIR/module.modulemap"
31
35
-lipo -create "$ROOT_DIR/target/x86_64-apple-ios/release/libonde.a" "$ROOT_DIR/target/aarch64-apple-ios-sim/release/libonde.a" -output "$DIST_DIR/libonde-ios-sim.a"
32
+cp "$ROOT_DIR/target/aarch64-apple-ios-sim/release/libonde.a" "$DIST_DIR/libonde-ios-sim.a"
33
37
-lipo -create "$ROOT_DIR/target/x86_64-apple-tvos/release/libonde.a" "$ROOT_DIR/target/aarch64-apple-tvos-sim/release/libonde.a" -output "$DIST_DIR/libonde-tvos-sim.a"
34
+cp "$ROOT_DIR/target/aarch64-apple-tvos-sim/release/libonde.a" "$DIST_DIR/libonde-tvos-sim.a"
35
39
-lipo -create "$ROOT_DIR/target/aarch64-apple-darwin/release/libonde.a" "$ROOT_DIR/target/x86_64-apple-darwin/release/libonde.a" -output "$DIST_DIR/libonde-macos.a"
36
+cp "$ROOT_DIR/target/aarch64-apple-darwin/release/libonde.a" "$DIST_DIR/libonde-macos.a"
37
38
xcodebuild -create-xcframework -library "$ROOT_DIR/target/aarch64-apple-ios/release/libonde.a" -headers "$HEADERS_DIR" -library "$DIST_DIR/libonde-ios-sim.a" -headers "$HEADERS_DIR" -library "$ROOT_DIR/target/aarch64-apple-tvos/release/libonde.a" -headers "$HEADERS_DIR" -library "$DIST_DIR/libonde-tvos-sim.a" -headers "$HEADERS_DIR" -library "$DIST_DIR/libonde-macos.a" -headers "$HEADERS_DIR" -output "$FRAMEWORK_DIR"
39
.github/workflows/build-swift-xcframework.yml
+2
-2
@@ -19,13 +19,13 @@ jobs:
19
uses: dtolnay/rust-toolchain@stable
20
with:
21
toolchain: 1.92.0
22
- targets: aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim,aarch64-apple-darwin,x86_64-apple-darwin
22
+ targets: aarch64-apple-ios,aarch64-apple-ios-sim,aarch64-apple-darwin
23
24
- name: Install nightly Rust toolchain for tvOS
25
uses: dtolnay/rust-toolchain@nightly
26
with:
27
components: rust-src
28
- targets: aarch64-apple-tvos,x86_64-apple-tvos,aarch64-apple-tvos-sim
28
+ targets: aarch64-apple-tvos,aarch64-apple-tvos-sim
29
30
- name: Verify Xcode
31
run: xcodebuild -version