Skip to content

Commit 9c19dff

Browse files
committed
fix(ci): install OpenSSL for Linux builds in workflow and cross containers
- Add libssl-dev and pkg-config installation for all Ubuntu jobs - Add Cross.toml with pre-build hooks to install OpenSSL in cross containers: - aarch64-unknown-linux-gnu: install libssl-dev:arm64 via dpkg - aarch64-unknown-linux-musl: install openssl-dev via apk (Alpine) - Reverts vendored OpenSSL approach in favor of system packages
1 parent 097413e commit 9c19dff

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/build-cli-binaries.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@ jobs:
5252
if: ${{ matrix.use-cross == 'true' }}
5353
run: cargo install cross --version 0.2.5
5454

55+
- name: Install OpenSSL dev (for Linux targets)
56+
if: matrix.os == 'ubuntu-latest'
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get install -y libssl-dev pkg-config
60+
5561
- name: Install musl-tools (for musl x64)
5662
if: matrix.target == 'x86_64-unknown-linux-musl'
57-
run: sudo apt-get update && sudo apt-get install -y musl-tools
63+
run: sudo apt-get install -y musl-tools
5864

5965
- name: Rust cache
6066
uses: Swatinem/rust-cache@v2

Cross.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Cross configuration for OpenSSL support in cross-compilation containers
2+
3+
[target.aarch64-unknown-linux-gnu]
4+
pre-build = [
5+
"dpkg --add-architecture arm64",
6+
"apt-get update && apt-get install --assume-yes -y libssl-dev:arm64 pkg-config"
7+
]
8+
9+
[target.aarch64-unknown-linux-musl]
10+
pre-build = [
11+
"apk add --no-cache openssl-dev"
12+
]

0 commit comments

Comments
 (0)