From d717473ac86932b56b805b14595b65afdb6698df Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Fri, 2 Oct 2026 14:55:14 +0300 Subject: [PATCH] fix(release): key rust-cache per bundle id so distros do not share build scripts Co-authored-by: Medulla --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f56c8ee6c..71db934ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -216,7 +216,14 @@ jobs: - uses: dtolnay/rust-toolchain@stable + # rust-cache's default key only knows OS family and CPU arch, so the + # ubuntu-22.04 and ubuntu-24.04 legs of this matrix shared one cache. + # A build script compiled on 24.04 (glibc 2.39) was restored onto the + # 22.04 runner (glibc 2.35) and failed to start (waproto, v0.1.9). + # Keying on the bundle id keeps every distro's artifacts separate. - uses: Swatinem/rust-cache@v2 + with: + key: ${{ matrix.id }} # The whole point of the per-distro matrix is that each `id` describes the # machine the artifact was built on. A runner image that silently changed