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

Commit

Permalink
Build alpine without openssl dep
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Jul 5, 2024
1 parent c2bef35 commit 9e579eb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 49 deletions.
96 changes: 48 additions & 48 deletions .github/workflows/dylibs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,56 @@ on:
- kendall/build-both-macs

jobs:
build-intel:
runs-on: macos-13
name: Build on Intel (x86) macOS
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup toolchain install stable
- name: Set Target
run: rustup target add x86_64-apple-darwin
- name: Build
run: cargo build --target x86_64-apple-darwin -p tbdex_uniffi --release
- name: Upload .dylib
uses: actions/upload-artifact@v3
with:
name: intel-build-dylib
path: target/x86_64-apple-darwin/release/libtbdex_uniffi.dylib
# build-intel:
# runs-on: macos-13
# name: Build on Intel (x86) macOS
# steps:
# - uses: actions/checkout@v2
# - name: Install Rust
# run: rustup toolchain install stable
# - name: Set Target
# run: rustup target add x86_64-apple-darwin
# - name: Build
# run: cargo build --target x86_64-apple-darwin -p tbdex_uniffi --release
# - name: Upload .dylib
# uses: actions/upload-artifact@v3
# with:
# name: intel-build-dylib
# path: target/x86_64-apple-darwin/release/libtbdex_uniffi.dylib

build-apple-silicon:
runs-on: macos-latest
name: Build on Apple Silicon (ARM) macOS
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup toolchain install stable
- name: Build
run: cargo build -p tbdex_uniffi --release
- name: Upload .dylib
uses: actions/upload-artifact@v3
with:
name: apple-silicon-build-dylib
path: target/release/libtbdex_uniffi.dylib
# build-apple-silicon:
# runs-on: macos-latest
# name: Build on Apple Silicon (ARM) macOS
# steps:
# - uses: actions/checkout@v2
# - name: Install Rust
# run: rustup toolchain install stable
# - name: Build
# run: cargo build -p tbdex_uniffi --release
# - name: Upload .dylib
# uses: actions/upload-artifact@v3
# with:
# name: apple-silicon-build-dylib
# path: target/release/libtbdex_uniffi.dylib

build-ubuntu:
runs-on: ubuntu-latest
name: Build on Ubuntu (AMD64)
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup toolchain install stable
- name: Set Target
run: rustup target add x86_64-unknown-linux-gnu
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential
- name: Build
run: cargo build --target x86_64-unknown-linux-gnu -p tbdex_uniffi --release
- name: Upload .so
uses: actions/upload-artifact@v3
with:
name: ubuntu-build-so
path: target/x86_64-unknown-linux-gnu/release/libtbdex_uniffi.so
# build-ubuntu:
# runs-on: ubuntu-latest
# name: Build on Ubuntu (AMD64)
# steps:
# - uses: actions/checkout@v2
# - name: Install Rust
# run: rustup toolchain install stable
# - name: Set Target
# run: rustup target add x86_64-unknown-linux-gnu
# - name: Install Dependencies
# run: sudo apt-get update && sudo apt-get install -y build-essential
# - name: Build
# run: cargo build --target x86_64-unknown-linux-gnu -p tbdex_uniffi --release
# - name: Upload .so
# uses: actions/upload-artifact@v3
# with:
# name: ubuntu-build-so
# path: target/x86_64-unknown-linux-gnu/release/libtbdex_uniffi.so

build-alpine:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion bindings/tbdex_uniffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ repository.workspace = true
license-file.workspace = true

[dependencies]
openssl = { version = "0.10", features = ["vendored"] } # this is necessary for dylib reasons, though not used directly
serde_json = { workspace = true }
tbdex = { path = "../../crates/tbdex" }
thiserror = { workspace = true }
Expand Down

0 comments on commit 9e579eb

Please sign in to comment.