We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a656ed7 commit 78f0b6fCopy full SHA for 78f0b6f
1 file changed
.github/workflows/shadow-rust-native-build.yml
@@ -224,10 +224,6 @@ jobs:
224
ldd --version
225
ldd "$BIN" || true
226
227
- - name: sccache stats
228
- if: always()
229
- run: mise x -- sccache --show-stats
230
-
231
- name: Stage binary for prebuilt layout
232
run: |
233
set -euo pipefail
@@ -245,3 +241,15 @@ jobs:
245
241
path: prebuilt-binaries/${{ inputs.arch }}/${{ steps.target.outputs.binary }}
246
242
retention-days: ${{ inputs['retention-days'] }}
247
243
if-no-files-found: error
244
+
+ - name: sccache stats
+ if: always()
+ 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