mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-03-18 21:40:38 +01:00
refactor(rust): update CI configuration to support static OpenSSL with cross
This commit is contained in:
2
.github/dependabot.yaml
vendored
2
.github/dependabot.yaml
vendored
@@ -5,7 +5,7 @@
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "pip" # See documentation for possible values
|
||||
- package-ecosystem: "cargo" # See documentation for possible values
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
|
||||
14
.github/workflows/create_dev.yml
vendored
14
.github/workflows/create_dev.yml
vendored
@@ -35,7 +35,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 }}
|
||||
|
||||
@@ -85,7 +98,6 @@ jobs:
|
||||
chmod +x binaries-docker/*
|
||||
ls -la binaries-docker/
|
||||
|
||||
# Construire et pousser l'image Docker dev
|
||||
- name: Construire et pousser l'image Docker dev
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
||||
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