CI: Make caches last one week at most

This commit is contained in:
SirLynix 2022-04-30 14:27:29 +02:00
parent b2bdcc63d0
commit 5f345555ab
4 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: Linux-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-r4
key: Linux-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-$(date +'%w')
# Setup compilation mode and install project dependencies
- name: Configure xmake and install dependencies

View File

@ -53,7 +53,7 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: macOS-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-r4
key: macOS-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-$(date +'%w')
# Setup compilation mode and install project dependencies
- name: Configure xmake and install dependencies

View File

@ -51,7 +51,7 @@ jobs:
id: xmake_cache
with:
path: ${{ github.workspace }}/xmake_git
key: MinGW-XMake-r2
key: MinGW-XMake-$(date +'%w')
# Build xmake
- name: Setup xmake
@ -82,7 +82,7 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: MinGW-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-r4
key: MinGW-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-$(date +'%w')
# Setup compilation mode and install project dependencies
- name: Configure xmake and install dependencies

View File

@ -53,7 +53,7 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ env.XMAKE_GLOBALDIR }}\.xmake\packages
key: MSVC-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-r4
key: MSVC-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-$(date +'%w')
# Setup compilation mode and install project dependencies
- name: Configure xmake and install dependencies