refactor(rust): update CI configuration to support static OpenSSL with cross

This commit is contained in:
Félix MARQUET
2025-06-12 20:18:30 +02:00
parent 4ffa83efb4
commit 5caa2b56ce
3 changed files with 27 additions and 2 deletions

View File

@@ -67,7 +67,20 @@ jobs:
- name: Installer cross
run: cargo install cross
- name: Créer Cross.toml pour spécifier OpenSSL statique
run: |
cat > Cross.toml << 'EOF'
[build.env]
passthrough = [
"RUSTFLAGS",
"OPENSSL_STATIC",
]
EOF
- name: Construire avec cross
env:
OPENSSL_STATIC: 1
RUSTFLAGS: "-C target-feature=+crt-static"
run: |
cross build --release --target ${{ matrix.target }}