File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,29 @@ inputs:
99runs :
1010 using : " composite"
1111 steps :
12+ - name : Grab timestamp
13+ run : echo "cache-timestamp=$(date +'%Y-%m-%dT%H:%M:%S')" >> "$GITHUB_ENV"
14+ shell : bash
15+ if : runner.os != 'Windows'
16+
17+ - name : Grab timestamp
18+ run : echo "cache-timestamp=$(date +'%Y-%m-%dT%H:%M:%S')" | Out-File -FilePath $env:GITHUB_ENV -Append
19+ shell : powershell
20+ if : runner.os == 'Windows'
21+
1222 - name : Cache build and vcpkg
1323 uses : actions/cache@v4
1424 with :
1525 path : |
1626 build
1727 external/vcpkg
18- key : ${{ inputs.os }}-${{ inputs.arch }}-build-2025-07-18-3-$(date +%s)
28+ key : ${{ inputs.os }}-${{ inputs.arch }}-build-2025-07-18-3-${{ github.sha }}-${{ env.cache-timestamp }}
1929 restore-keys : ${{ inputs.os }}-${{ inputs.arch }}-build-2025-07-18-3
2030
2131 - name : Cache bin
2232 uses : actions/cache@v4
2333 with :
2434 path : |
2535 bin
26- key : ${{ inputs.os }}-bin-2025-07-18-3-$(date +%s)
36+ key : ${{ inputs.os }}-bin-2025-07-18-3-${{ github.sha }}-${{ env.cache-timestamp }}
2737 restore-keys : ${{ inputs.os }}-bin-2025-07-18-3
You can’t perform that action at this time.
0 commit comments