Skip to content

Commit 5e1c667

Browse files
committed
Fix cache
Change-Id: I53c32a5f4950c98b2be38fa2be8391e9870f1d6f
1 parent 921be49 commit 5e1c667

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: .github/workflows/main.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,16 @@ jobs:
3434
- uses: actions/checkout@v1
3535
- name: Create .ccache dir
3636
run: mkdir -p ~/.ccache
37+
- name: prepare timestamp
38+
id: get-timestamp
39+
run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
40+
shell: bash
3741
- name: ccache cache files
3842
uses: actions/cache@v4
3943
with:
4044
path: ~/.ccache
41-
key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache
45+
key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache-${{ steps.get-timestamp.outputs.timestamp }}
46+
restore-keys: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache
4247
- name: Pull the Docker Image
4348
run: docker-compose pull ${{ matrix.config.image }}
4449
- name: Print ccache stats

0 commit comments

Comments
 (0)