Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Build as dylib but w/ openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Jul 5, 2024
1 parent fda417e commit ec7ab2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
run: rustup target add x86_64-apple-darwin
- name: Build
run: cargo build --target x86_64-apple-darwin -p tbdex_uniffi --release
- name: Convert to Dynamic Library
run: |
gcc -dynamiclib -o target/x86_64-apple-darwin/release/libtbdex_uniffi.dylib \
-Wl,-all_load target/x86_64-apple-darwin/release/libtbdex_uniffi.a
# - name: Convert to Dynamic Library
# run: |
# gcc -dynamiclib -o target/x86_64-apple-darwin/release/libtbdex_uniffi.dylib \
# -Wl,-all_load target/x86_64-apple-darwin/release/libtbdex_uniffi.a
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: intel-build-artifacts
# target/x86_64-apple-darwin/release/libtbdex_uniffi.a
path: |
target/x86_64-apple-darwin/release/libtbdex_uniffi.a
target/x86_64-apple-darwin/release/libtbdex_uniffi.dylib
build-apple-silicon:
Expand Down
2 changes: 1 addition & 1 deletion bindings/tbdex_uniffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ openssl = { version = "0.10", features = ["vendored"] }
uniffi = { version = "0.27.1", features = ["build"] }

[lib]
crate-type = ["staticlib", "cdylib"]
crate-type = ["cdylib"]

[[bin]]
name = "uniffi-bindgen"
Expand Down

0 comments on commit ec7ab2b

Please sign in to comment.