Skip to content

Commit 2b64a7c

Browse files
committed
Fix cross builds: vendor OpenSSL via Cross.toml passthrough
1 parent a318830 commit 2b64a7c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ jobs:
6868
- name: Build
6969
shell: bash
7070
env:
71-
OPENSSL_STATIC: ${{ matrix.use_cross == 'true' && '1' || '' }}
71+
OPENSSL_STATIC: "1"
72+
OPENSSL_VENDORED: "1"
7273
run: |
7374
if [ "${{ matrix.use_cross }}" = "true" ]; then
7475
cross build --release --target ${{ matrix.target }}

Cross.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build.env]
2+
passthrough = ["OPENSSL_STATIC", "OPENSSL_VENDORED"]

0 commit comments

Comments
 (0)