From 6810d31602eaaa0c93b7378bf907783033f7ce4e Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Tue, 26 Aug 2025 16:47:05 +0200 Subject: [PATCH] chore: CI: cache again on failure (#10137) --- .github/workflows/build-template.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-template.yml b/.github/workflows/build-template.yml index 90869c4046..e2a164d12b 100644 --- a/.github/workflows/build-template.yml +++ b/.github/workflows/build-template.yml @@ -175,7 +175,9 @@ jobs: # Should be done as early as possible and in particular *before* "Check rebootstrap" which # changes the state of stage1/ - name: Save Cache - if: steps.restore-cache.outputs.cache-hit != 'true' + # Caching on cancellation created some mysterious issues perhaps related to improper build + # shutdown + if: steps.restore-cache.outputs.cache-hit != 'true' && !cancelled() uses: actions/cache/save@v4 with: # NOTE: must be in sync with `restore` above