@@ -18,8 +18,6 @@ concurrency:
1818
1919env :
2020 CARGO_INCREMENTAL : " 0"
21- # Log cache write failures without dumping compiler arguments or environments.
22- SCCACHE_LOG : " debug/Error executing cache write"
2321
2422jobs :
2523 pr_metadata :
6967 experimental : true
7068 - name : Configure GHA sccache backend
7169 uses : mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
72- env :
73- SCCACHE_ERROR_LOG : ${{ runner.temp }}/openshell-sccache-errors.log
7470 - name : Isolate Rust toolchains
7571 # rust-cache hashes every installed toolchain, including unused runner defaults.
7672 run : ' "RUSTUP_HOME=$env:RUNNER_TEMP/openshell-rustup" >> $env:GITHUB_ENV'
9894 run : mise run --skip-tools windows:test:${{ matrix.arch }}
9995 - name : sccache stats
10096 if : always()
101- run : |
102- sccache --show-stats
103- $cacheErrorLog = Join-Path $env:RUNNER_TEMP 'openshell-sccache-errors.log'
104- if (Test-Path -LiteralPath $cacheErrorLog) {
105- Get-Content -LiteralPath $cacheErrorLog -Tail 20 |
106- ForEach-Object { $_ -replace '(https?://[^\s?]+)\?\S+', '$1?[redacted]' }
107- }
97+ run : sccache --show-stats
10898
10999 cache-seed :
110100 name : Seed cache (${{ matrix.arch }})
@@ -137,8 +127,6 @@ jobs:
137127 experimental : true
138128 - name : Configure GHA sccache backend
139129 uses : mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
140- env :
141- SCCACHE_ERROR_LOG : ${{ runner.temp }}/openshell-sccache-errors.log
142130 - name : Isolate Rust toolchains
143131 run : ' "RUSTUP_HOME=$env:RUNNER_TEMP/openshell-rustup" >> $env:GITHUB_ENV'
144132 - uses : dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable
@@ -165,13 +153,7 @@ jobs:
165153 run : mise run --skip-tools windows:test:${{ matrix.arch }}
166154 - name : sccache stats
167155 if : always()
168- run : |
169- sccache --show-stats
170- $cacheErrorLog = Join-Path $env:RUNNER_TEMP 'openshell-sccache-errors.log'
171- if (Test-Path -LiteralPath $cacheErrorLog) {
172- Get-Content -LiteralPath $cacheErrorLog -Tail 20 |
173- ForEach-Object { $_ -replace '(https?://[^\s?]+)\?\S+', '$1?[redacted]' }
174- }
156+ run : sccache --show-stats
175157
176158 build :
177159 name : Build binaries (${{ matrix.arch }})
@@ -201,8 +183,6 @@ jobs:
201183 experimental : true
202184 - name : Configure GHA sccache backend
203185 uses : mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
204- env :
205- SCCACHE_ERROR_LOG : ${{ runner.temp }}/openshell-sccache-errors.log
206186 - name : Isolate Rust toolchains
207187 run : ' "RUSTUP_HOME=$env:RUNNER_TEMP/openshell-rustup" >> $env:GITHUB_ENV'
208188 - uses : dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable
@@ -222,10 +202,4 @@ jobs:
222202 run : mise run --skip-tools windows:build:${{ matrix.arch }}
223203 - name : sccache stats
224204 if : always()
225- run : |
226- sccache --show-stats
227- $cacheErrorLog = Join-Path $env:RUNNER_TEMP 'openshell-sccache-errors.log'
228- if (Test-Path -LiteralPath $cacheErrorLog) {
229- Get-Content -LiteralPath $cacheErrorLog -Tail 20 |
230- ForEach-Object { $_ -replace '(https?://[^\s?]+)\?\S+', '$1?[redacted]' }
231- }
205+ run : sccache --show-stats
0 commit comments