Skip to content

Commit 4e55cbe

Browse files
(actions) generate new cache each day (#28)
2 parents 8fde52d + fa6fb63 commit 4e55cbe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v3
20+
- name: Get Date
21+
id: get-date
22+
run: |
23+
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
2024
- name: Cache ccache
2125
uses: actions/cache@v3
2226
with:
2327
path: |
2428
~/.ccache
25-
key: ${{ runner.os }}-ccache-${{ github.event.repository.name }}-${{ github.sha }}
29+
key: ${{ runner.os }}-ccache-${{ steps.get-date.outputs.date }}
2630
restore-keys: |
27-
${{ runner.os }}-ccache-${{ github.event.repository.name }}-
2831
${{ runner.os }}-ccache-
2932
- name: Install
3033
run: |

0 commit comments

Comments
 (0)