diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index 29278e183..5543d60cf 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -202,11 +202,12 @@ jobs: --ccache "$CCACHE_SIZE" $NO_CLIENT .ci/name_build.sh + # Delete stale ccache so Save can refresh it; failures are non-fatal (e.g. no prior cache) - name: Delete stale ccache if: github.ref == 'refs/heads/master' env: GH_TOKEN: ${{github.token}} - run: gh cache delete "${{ steps.ccache_restore.outputs.cache-primary-key }}" || true + run: gh cache delete "${{ steps.ccache_restore.outputs.cache-primary-key }}" || echo "warning: cache delete failed" - name: Save compiler cache (ccache) if: github.ref == 'refs/heads/master' @@ -449,11 +450,12 @@ jobs: TARGET_MACOS_VERSION: ${{ matrix.override_target }} run: .ci/compile.sh --server --test --vcpkg + # Delete stale ccache so Save can refresh it; failures are non-fatal (e.g. no prior cache) - name: Delete stale ccache if: github.ref == 'refs/heads/master' && matrix.use_ccache == 1 env: GH_TOKEN: ${{github.token}} - run: gh cache delete "${{ steps.ccache_restore.outputs.cache-primary-key }}" || true + run: gh cache delete "${{ steps.ccache_restore.outputs.cache-primary-key }}" || echo "warning: cache delete failed" - name: Save compiler cache (ccache) if: github.ref == 'refs/heads/master' && matrix.use_ccache == 1