Skip to content

Commit 78f0b6f

Browse files
authored
ci(rust): keep sccache stats non-blocking
1 parent a656ed7 commit 78f0b6f

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/shadow-rust-native-build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,6 @@ jobs:
224224
ldd --version
225225
ldd "$BIN" || true
226226
227-
- name: sccache stats
228-
if: always()
229-
run: mise x -- sccache --show-stats
230-
231227
- name: Stage binary for prebuilt layout
232228
run: |
233229
set -euo pipefail
@@ -245,3 +241,15 @@ jobs:
245241
path: prebuilt-binaries/${{ inputs.arch }}/${{ steps.target.outputs.binary }}
246242
retention-days: ${{ inputs['retention-days'] }}
247243
if-no-files-found: error
244+
245+
- name: sccache stats
246+
if: always()
247+
run: |
248+
set +e
249+
stats_bin="${SCCACHE_PATH:-sccache}"
250+
"$stats_bin" --show-stats
251+
status=$?
252+
if [[ $status -ne 0 ]]; then
253+
echo "::warning::sccache stats unavailable (exit $status)"
254+
fi
255+
exit 0

0 commit comments

Comments
 (0)