fix(ci): disable reqwest default features to eliminate OpenSSL on musl builds
Requiring default-features=false on reqwest prevents native-tls/openssl-sys from being pulled in as transitive dependencies, which broke static linking on Alpine musl target. Also reverts invalid openssl-static package from CI. - Cargo.toml: add default-features = false to reqwest dependency - ci.yml: revert non-existent openssl-static package
This commit is contained in:
@ -277,7 +277,7 @@ jobs:
|
|||||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache alpine-sdk rust cargo openssl-dev openssl-static elogind-dev musl-dev abuild gcc
|
apk add --no-cache alpine-sdk rust cargo openssl-dev elogind-dev musl-dev abuild gcc
|
||||||
- name: Build release binary
|
- name: Build release binary
|
||||||
run: cargo build --release --target x86_64-unknown-linux-musl
|
run: cargo build --release --target x86_64-unknown-linux-musl
|
||||||
- name: Build Alpine package
|
- name: Build Alpine package
|
||||||
|
|||||||
@ -64,7 +64,7 @@ addr = "0.15"
|
|||||||
if-addrs = "0.13"
|
if-addrs = "0.13"
|
||||||
|
|
||||||
# HTTP client for enrollment communication
|
# HTTP client for enrollment communication
|
||||||
reqwest = { version = "0.12", features = ["json", "rustls-tls"] }
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
||||||
|
|
||||||
# Clap for CLI arguments
|
# Clap for CLI arguments
|
||||||
clap = { version = "4", features = ["derive", "env"] }
|
clap = { version = "4", features = ["derive", "env"] }
|
||||||
|
|||||||
Reference in New Issue
Block a user