File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -eox pipefail
3
+
2
4
BINDINGS_DIR=" ./bindings/swift"
3
5
UNIFFI_BINDGEN_BIN=" cargo run --manifest-path bindings/uniffi-bindgen/Cargo.toml"
4
6
@@ -8,19 +10,19 @@ $UNIFFI_BINDGEN_BIN generate bindings/ldk_node.udl --language swift -o "$BINDING
8
10
mkdir -p $BINDINGS_DIR
9
11
10
12
# Install rust target toolchains
11
- rustup install 1.73.0
12
- rustup component add rust-src --toolchain 1.73.0
13
- rustup target add aarch64-apple-ios x86_64-apple-ios --toolchain 1.73.0
14
- rustup target add aarch64-apple-ios-sim --toolchain 1.73.0
15
- rustup target add aarch64-apple-darwin x86_64-apple-darwin --toolchain 1.73.0
13
+ rustup upgrade stable
14
+ rustup component add rust-src --toolchain stable
15
+ rustup target add aarch64-apple-ios x86_64-apple-ios --toolchain stable
16
+ rustup target add aarch64-apple-ios-sim --toolchain stable
17
+ rustup target add aarch64-apple-darwin x86_64-apple-darwin --toolchain stable
16
18
17
19
# Build rust target libs
18
20
cargo build --profile release-smaller --features uniffi || exit 1
19
21
cargo build --profile release-smaller --features uniffi --target x86_64-apple-darwin || exit 1
20
22
cargo build --profile release-smaller --features uniffi --target aarch64-apple-darwin || exit 1
21
23
cargo build --profile release-smaller --features uniffi --target x86_64-apple-ios || exit 1
22
24
cargo build --profile release-smaller --features uniffi --target aarch64-apple-ios || exit 1
23
- cargo +1.73.0 build --release --features uniffi --target aarch64-apple-ios-sim || exit 1
25
+ cargo +stable build --release --features uniffi --target aarch64-apple-ios-sim || exit 1
24
26
25
27
# Combine ios-sim and apple-darwin (macos) libs for x86_64 and aarch64 (m1)
26
28
mkdir -p target/lipo-ios-sim/release-smaller || exit 1
You can’t perform that action at this time.
0 commit comments