From 5cc6900fce7690b5272fd8ab478e9c63f8c8687e Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Thu, 30 Apr 2026 11:58:33 +0200 Subject: [PATCH] force nimbledeps deps update if corrupted in CI --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52d20157a..a6c133b9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,9 @@ jobs: key: ${{ runner.os }}-nimbledeps-nimble${{ env.NIMBLE_VERSION }}-${{ hashFiles('nimble.lock', 'BearSSL.mk', 'Nat.mk') }} - name: Install nimble deps - if: steps.cache-nimbledeps.outputs.cache-hit != 'true' + # Also run if sentinel file is missing: guards against a corrupt cache + # saved after a partial install (e.g. interrupted run). + if: steps.cache-nimbledeps.outputs.cache-hit != 'true' || !hashFiles('nimbledeps/.nimble-setup') run: | nimble setup --localdeps -y make rebuild-nat-libs-nimbledeps @@ -140,7 +142,9 @@ jobs: key: ${{ runner.os }}-nimbledeps-nimble${{ env.NIMBLE_VERSION }}-${{ hashFiles('nimble.lock', 'BearSSL.mk', 'Nat.mk') }} - name: Install nimble deps - if: steps.cache-nimbledeps.outputs.cache-hit != 'true' + # Also run if sentinel file is missing: guards against a corrupt cache + # saved after a partial install (e.g. interrupted run). + if: steps.cache-nimbledeps.outputs.cache-hit != 'true' || !hashFiles('nimbledeps/.nimble-setup') run: | nimble setup --localdeps -y make rebuild-nat-libs-nimbledeps @@ -219,7 +223,9 @@ jobs: key: ${{ runner.os }}-nimbledeps-nimble${{ env.NIMBLE_VERSION }}-${{ hashFiles('nimble.lock', 'BearSSL.mk', 'Nat.mk') }} - name: Install nimble deps - if: steps.cache-nimbledeps.outputs.cache-hit != 'true' + # Also run if sentinel file is missing: guards against a corrupt cache + # saved after a partial install (e.g. interrupted run). + if: steps.cache-nimbledeps.outputs.cache-hit != 'true' || !hashFiles('nimbledeps/.nimble-setup') run: | nimble setup --localdeps -y make rebuild-nat-libs-nimbledeps