[ci] use rolling cache keys for xmake dependency caches

This commit is contained in:
dijunkun
2026-04-14 02:16:17 +08:00
parent 21425c7132
commit 48d650a876

View File

@@ -115,7 +115,7 @@ jobs:
uses: actions/cache@v5
with:
path: ~/.xmake/packages
key: ${{ runner.os }}-xmake-deps-${{ matrix.cache-key }}-${{ github.sha }}
key: "${{ runner.os }}-xmake-deps-${{ matrix.cache-key }}-${{ github.run_id }}"
restore-keys: |
${{ runner.os }}-xmake-deps-${{ matrix.cache-key }}-
@@ -172,7 +172,7 @@ jobs:
uses: actions/cache@v5
with:
path: D:\xmake_global\.xmake\packages
key: ${{ runner.os }}-xmake-deps-intel-${{ github.sha }}
key: "${{ runner.os }}-xmake-deps-intel-${{ github.run_id }}"
restore-keys: |
${{ runner.os }}-xmake-deps-intel-