3333
3434 setup :
3535 runs-on : ubuntu-24.04
36+ permissions :
37+ id-token : write
3638 outputs :
3739 unit-tests : ${{ steps.packages.outputs.unit-tests }}
3840 integration-tests : ${{ steps.packages.outputs.integration-tests }}
4951 uses : ./.github/actions/install-tools
5052 with :
5153 token : ${{ secrets.GITHUB_TOKEN }}
54+ vault_address : ${{ secrets.VAULT_ADDR }}
5255 rust : false
5356
5457 - name : Determine changed packages
@@ -129,6 +132,7 @@ jobs:
129132 uses : ./.github/actions/install-tools
130133 with :
131134 token : ${{ secrets.GITHUB_TOKEN }}
135+ vault_address : ${{ secrets.VAULT_ADDR }}
132136
133137 - name : Prune repository
134138 uses : ./.github/actions/prune-repository
@@ -198,6 +202,33 @@ jobs:
198202 run : |
199203 turbo run test:miri --filter "${{ matrix.name }}"
200204
205+ - name : Show sccache logs
206+ if : always() && steps.tests.outputs.has-rust == 'true'
207+ run : |
208+ grep "CannotCache" /tmp/sccache.log | while IFS= read -r line; do
209+ # Extract reason - format as "reason1 (reason2)" if comma-separated, otherwise just "reason"
210+ if echo "$line" | grep -qE 'CannotCache\([^,]+, [^)]+\):'; then
211+ reason=$(echo "$line" | sed -E 's/.*CannotCache\(([^,]+), ([^)]+)\):.*/\1 (\2)/')
212+ else
213+ reason=$(echo "$line" | sed -E 's/.*CannotCache\(([^)]+)\):.*/\1/')
214+ fi
215+
216+ # Extract crate name if present
217+ if echo "$line" | grep -q '"--crate-name"'; then
218+ crate=$(echo "$line" | sed -E 's/.*"--crate-name", "([^"]+)".*/\1/')
219+ else
220+ crate="<no crate name>"
221+ fi
222+
223+ # Extract args
224+ args=$(echo "$line" | sed -E 's/.*CannotCache\([^)]+\): (\[.+\])$/\1/')
225+
226+ echo ""
227+ echo "reason: $reason"
228+ echo "crate: $crate"
229+ echo "args: $args"
230+ done
231+
201232 build :
202233 name : Build
203234 permissions :
@@ -235,6 +266,8 @@ jobs:
235266 fail-fast : false
236267 if : needs.setup.outputs.integration-tests != '{"name":[],"include":[]}' && needs.optimize-ci.outputs.skip == 'false'
237268 runs-on : ubuntu-24.04
269+ permissions :
270+ id-token : write
238271 steps :
239272 - name : Checkout
240273 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -246,6 +279,7 @@ jobs:
246279 uses : ./.github/actions/install-tools
247280 with :
248281 token : ${{ secrets.GITHUB_TOKEN }}
282+ vault_address : ${{ secrets.VAULT_ADDR }}
249283
250284 - name : Prune repository
251285 uses : ./.github/actions/prune-repository
0 commit comments