Skip to content

Commit

Permalink
Temp 22: Add linkerSettings to Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Oct 13, 2023
1 parent 7144601 commit 3072962
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ jobs:
distribution: temurin
java-version: 11

# TODO 21: Add this to the publishing script!
- name: "Install OpenSSL dependencies"
run: sudo apt-get update && sudo apt-get install -y libssl-dev

- name: "Find openssl path"
run: ls -R /usr/

- name: "Set default Rust version to 1.67.0"
run: rustup default 1.67.0

Expand All @@ -57,7 +61,7 @@ jobs:

- name: "Build Android library"
env:
OPENSSL_DIR: /usr/include/openssl
OPENSSL_DIR: /usr/
run: |
cd bdk-android
./gradlew buildAndroidLib
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
with:
toolchain: stable

# TODO 20: Add this to the publishing script!
# For the Linux builds, you'll run into errors on compilation because Rust cannot find the openssl library.
# To solve this we install them explicitly here
- name: "Install OpenSSL dependencies"
run: yum install -y openssl-devel

Expand Down
5 changes: 4 additions & 1 deletion bdk-swift/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ let package = Package(
.target(
name: "BitcoinDevKit",
dependencies: ["bdkFFI"],
swiftSettings: [.unsafeFlags(["-suppress-warnings"])]
swiftSettings: [.unsafeFlags(["-suppress-warnings"])],
linkerSettings: [
.linkedFramework("SystemConfiguration", .when(platforms: [.macOS, .iOS, .tvOS, .watchOS]))
]
),
.testTarget(
name: "BitcoinDevKitTests",
Expand Down

0 comments on commit 3072962

Please sign in to comment.