Fix Swift script and CI workflow

This commit is contained in:
thunderbiscuit 2023-02-28 12:42:54 -05:00
parent 44b2ef1382
commit 90763d42a2
No known key found for this signature in database
GPG Key ID: 88253696EB836462
2 changed files with 9 additions and 9 deletions

View File

@ -24,13 +24,13 @@ jobs:
- name: Run bdk-ffi-bindgen
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
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
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
run: |

View File

@ -13,14 +13,14 @@ rustup target add aarch64-apple-darwin x86_64-apple-darwin
pushd bdk-ffi
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
cargo build --package bdk-ffi --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 --profile release-smaller --target x86_64-apple-ios
cargo build --package bdk-ffi --profile release-smaller --target aarch64-apple-ios
cargo +nightly build --package bdk-ffi --release -Z build-std --target aarch64-apple-ios-sim
cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target x86_64-apple-darwin
cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target aarch64-apple-darwin
cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target x86_64-apple-ios
cargo build --package bdk-ffi --features uniffi/cli --profile release-smaller --target aarch64-apple-ios
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
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