Skip to content

Commit f113089

Browse files
committed
Fix OpenSSL for cross builds via pre-build deps and OPENSSL_VENDORED
1 parent a1b0515 commit f113089

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ jobs:
6868
- name: Build
6969
shell: bash
7070
env:
71-
OPENSSL_STATIC: "1"
7271
OPENSSL_VENDORED: "1"
7372
run: |
7473
if [ "${{ matrix.use_cross }}" = "true" ]; then

Cross.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
[build.env]
2-
passthrough = ["OPENSSL_STATIC", "OPENSSL_VENDORED"]
2+
passthrough = ["OPENSSL_VENDORED"]
3+
4+
[target.x86_64-unknown-linux-musl]
5+
pre-build = [
6+
"apt-get update && apt-get install -y perl libssl-dev",
7+
]
8+
9+
[target.aarch64-unknown-linux-gnu]
10+
pre-build = [
11+
"dpkg --add-architecture $CROSS_DEB_ARCH",
12+
"apt-get update && apt-get install -y perl libssl-dev:$CROSS_DEB_ARCH",
13+
]

0 commit comments

Comments
 (0)