Skip to content

Commit ded49e3

Browse files
author
Binh Nguyen
committed
build(deb): add s390x deb variant + reuse target dir on native runner
- Add [package.metadata.deb.variants.s390x-unknown-linux-gnu] so cargo-deb --variant s390x-unknown-linux-gnu succeeds (was missing; deb packaging failed). - s390x-build-verify: set checkout clean=false to preserve the cargo target dir between runs on the persistent runner, reusing the fat-LTO release build.
1 parent a61bd96 commit ded49e3

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/s390x-build-verify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3838
with:
3939
ref: ${{ inputs.git_ref }}
40+
# Preserve the cargo target/ dir between runs on this persistent runner
41+
# so the slow fat-LTO release build is reused (cargo refingerprints on
42+
# source changes). Avoids a ~1h full rebuild every packaging iteration.
43+
clean: false
4044
- name: Ensure swap headroom (avoid OOM during compile/LTO link)
4145
run: |
4246
# Idempotent on the persistent self-hosted runner: only create the CI

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ depends = "libc6 (>= 2.18)"
9595
[package.metadata.deb.variants.aarch64-unknown-linux-musl]
9696
depends = ""
9797

98+
[package.metadata.deb.variants.s390x-unknown-linux-gnu]
99+
depends = "libc6 (>= 2.17)"
100+
98101
[workspace]
99102
members = [
100103
".",

0 commit comments

Comments
 (0)