Skip to content

Commit 3943f4c

Browse files
committed
refactor: remove openssl
1 parent bf13ac4 commit 3943f4c

File tree

3 files changed

+55
-17
lines changed

3 files changed

+55
-17
lines changed

.github/workflows/release.yml

+1-16
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,9 @@ jobs:
5656
with:
5757
key: ${{ matrix.platform.target }} # Use target in cache key
5858

59-
# --- Install Dependencies ---
60-
- name: Install Linux dependencies
61-
if: runner.os == 'Linux'
62-
run: |
63-
sudo apt-get update
64-
sudo apt-get install -y libssl-dev pkg-config
65-
66-
- name: Install macOS dependencies
67-
if: runner.os == 'macOS'
68-
run: |
69-
brew install openssl@3 pkg-config
70-
# Set env vars for openssl-sys build script
71-
echo "OPENSSL_DIR=$(brew --prefix openssl@3)" >> $GITHUB_ENV
72-
echo "PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig" >> $GITHUB_ENV
73-
7459
# --- Build Binary ---
7560
- name: Build binary using actions-rust-cross
76-
uses: houseabsolute/actions-rust-cross@v0 # Using v0 as in your example
61+
uses: houseabsolute/actions-rust-cross@v1 # Using latest version
7762
with:
7863
# command: build # Default is build
7964
target: ${{ matrix.platform.target }}

Cargo.lock

+52
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ async-openai = "0.28.0"
1818
futures = "0.3"
1919
bincode = { version = "2.0.1", features = ["serde"] } # Enable serde integration
2020
tiktoken-rs = "0.6.0"
21-
cargo = "0.86.0"
21+
# Configure cargo crate to vendor openssl to avoid system mismatches
22+
cargo = { version = "0.86.0", default-features = false, features = ["vendored-openssl"] }
2223
tempfile = "3.19.1"
2324
xdg = { version = "2.5.2", features = ["serde"] }
2425
anyhow = "1.0.97"

0 commit comments

Comments
 (0)