From 280f563e049fa9e773a216c7ca9b889827bcb19f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 31 Aug 2026 07:48:23 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix(ci):=20bump=20the=20rust-cac?= =?UTF-8?q?he=20prefix=20for=20the=20gnu=20target?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cache key does not include the target or the rustflags, and on a key hit the save step reports up-to-date and stores nothing — so the deps recompiled under the musl→gnu transition were thrown away and would have been recompiled on every future run (both flag-change runs measured 421s and 381s against a ~300s warm floor for exactly this reason). A new prefix makes the next run save a fresh snapshot. --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2eac6df..cf22b00 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,6 +44,12 @@ jobs: uses: Swatinem/rust-cache@v2 with: cache-all-crates: true + # Bump when the target, the profile or any rustflags change: the + # key does not otherwise see those, and a run that restores the + # old key reports it up-to-date at save time — discarding the + # recompiled dependencies and silently recompiling them on every + # later run (observed when the musl→gnu move landed on this key). + prefix-key: v1-rust-gnu # Compiling the CLI from source costs minutes and it changes only when # the pinned version does, so it is cached on that version alone.