diff --git a/.github/workflows/test-android.yaml b/.github/workflows/test-android.yaml index b128cd0b..10f422ff 100644 --- a/.github/workflows/test-android.yaml +++ b/.github/workflows/test-android.yaml @@ -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 @@ -57,7 +61,7 @@ jobs: - name: "Build Android library" env: - OPENSSL_DIR: /usr/include/openssl + OPENSSL_DIR: /usr/ run: | cd bdk-android ./gradlew buildAndroidLib diff --git a/.github/workflows/test-python.yaml b/.github/workflows/test-python.yaml index 9ef6cb8a..dabb4935 100644 --- a/.github/workflows/test-python.yaml +++ b/.github/workflows/test-python.yaml @@ -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 diff --git a/bdk-swift/Package.swift b/bdk-swift/Package.swift index 79d1817b..aec8c7a0 100644 --- a/bdk-swift/Package.swift +++ b/bdk-swift/Package.swift @@ -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",