mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-01-18 16:37:28 +01:00
refactor(rust): update CI configuration to support static OpenSSL with cross
This commit is contained in:
13
.github/workflows/create_release.yml
vendored
13
.github/workflows/create_release.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user