Fix Swift script and CI workflow
This commit is contained in:
parent
44b2ef1382
commit
90763d42a2
6
.github/workflows/test-swift.yaml
vendored
6
.github/workflows/test-swift.yaml
vendored
@ -24,13 +24,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Run bdk-ffi-bindgen
|
- name: Run bdk-ffi-bindgen
|
||||||
working-directory: bdk-ffi
|
working-directory: bdk-ffi
|
||||||
run: cargo run --package bdk-ffi-bindgen -- --language swift --out-dir ../bdk-swift/Sources/BitcoinDevKit
|
run: cargo run --features uniffi/cli --bin uniffi-bindgen generate src/bdk.udl --language swift --out-dir ../bdk-swift/Sources/BitcoinDevKit --no-format
|
||||||
|
|
||||||
- name: Build bdk-ffi for x86_64-apple-darwin
|
- name: Build bdk-ffi for x86_64-apple-darwin
|
||||||
run: cargo build --profile release-smaller --target x86_64-apple-darwin
|
run: cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target x86_64-apple-darwin
|
||||||
|
|
||||||
- name: Build bdk-ffi for aarch64-apple-darwin
|
- name: Build bdk-ffi for aarch64-apple-darwin
|
||||||
run: cargo build --profile release-smaller --target aarch64-apple-darwin
|
run: cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target aarch64-apple-darwin
|
||||||
|
|
||||||
- name: Create lipo-ios-sim and lipo-macos
|
- name: Create lipo-ios-sim and lipo-macos
|
||||||
run: |
|
run: |
|
||||||
|
@ -13,14 +13,14 @@ rustup target add aarch64-apple-darwin x86_64-apple-darwin
|
|||||||
|
|
||||||
pushd bdk-ffi
|
pushd bdk-ffi
|
||||||
mkdir -p Sources/BitcoinDevKit
|
mkdir -p Sources/BitcoinDevKit
|
||||||
cargo run --package bdk-ffi-bindgen -- --language swift --out-dir ../bdk-swift/Sources/BitcoinDevKit
|
cargo run --features uniffi/cli --bin uniffi-bindgen generate src/bdk.udl --language swift --out-dir ../bdk-swift/Sources/BitcoinDevKit --no-format
|
||||||
popd
|
popd
|
||||||
|
|
||||||
cargo build --package bdk-ffi --profile release-smaller --target x86_64-apple-darwin
|
cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target x86_64-apple-darwin
|
||||||
cargo build --package bdk-ffi --profile release-smaller --target aarch64-apple-darwin
|
cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target aarch64-apple-darwin
|
||||||
cargo build --package bdk-ffi --profile release-smaller --target x86_64-apple-ios
|
cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target x86_64-apple-ios
|
||||||
cargo build --package bdk-ffi --profile release-smaller --target aarch64-apple-ios
|
cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target aarch64-apple-ios
|
||||||
cargo +nightly build --package bdk-ffi --release -Z build-std --target aarch64-apple-ios-sim
|
cargo +nightly build --package bdk-ffi --features uniffi/cli --release -Z build-std --target aarch64-apple-ios-sim
|
||||||
|
|
||||||
mkdir -p target/lipo-ios-sim/release-smaller
|
mkdir -p target/lipo-ios-sim/release-smaller
|
||||||
lipo target/aarch64-apple-ios-sim/release/libbdkffi.a target/x86_64-apple-ios/release-smaller/libbdkffi.a -create -output target/lipo-ios-sim/release-smaller/libbdkffi.a
|
lipo target/aarch64-apple-ios-sim/release/libbdkffi.a target/x86_64-apple-ios/release-smaller/libbdkffi.a -create -output target/lipo-ios-sim/release-smaller/libbdkffi.a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user