From 017646b014ba5b1045ad400abf3edd37b8da2900 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Wed, 29 Oct 2025 14:02:29 +0000 Subject: [PATCH] One more try --- .github/workflows/rust-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 3079425610..55b4db3151 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -6,6 +6,10 @@ on: - main workflow_dispatch: +permissions: + actions: write + contents: read + # CI builds in debug (dev) for faster signal. jobs: @@ -192,6 +196,12 @@ jobs: echo "Using sccache local disk + actions/cache fallback" fi + - name: Remap debug paths (Windows) + if: startsWith(matrix.runner, 'windows') + shell: bash + run: | + echo 'RUSTFLAGS=-C remap-path-prefix=${{ github.workspace }}=.' >> "$GITHUB_ENV" + - name: Restore sccache cache (fallback) if: ${{ env.SCCACHE_GHA_ENABLED != 'true' }} id: cache_sccache_restore @@ -381,7 +391,7 @@ jobs: uses: taiki-e/install-action@0c5db7f7f897c03b771660e91d065338615679f4 # v2 with: tool: sccache - version: 0.7.5 + version: 0.12.0 - name: Configure sccache backend shell: bash @@ -396,6 +406,12 @@ jobs: echo "Using sccache local disk + actions/cache fallback" fi + - name: Remap debug paths (Windows) + if: startsWith(matrix.runner, 'windows') + shell: bash + run: | + echo 'RUSTFLAGS=-C remap-path-prefix=${{ github.workspace }}=.' >> "$GITHUB_ENV" + - name: Restore sccache cache (fallback) if: ${{ env.SCCACHE_GHA_ENABLED != 'true' }} id: cache_sccache_restore