Skip to content

Commit 8b603fe

Browse files
committed
temp
1 parent d6d5978 commit 8b603fe

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/actions/cache/action.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,29 @@ inputs:
99
runs:
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

0 commit comments

Comments
 (0)