From ecbec4d3012b1493a2700686b4ddd1080080e6d2 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Tue, 14 Apr 2026 02:16:17 +0800 Subject: [PATCH] [ci] use rolling cache keys for xmake dependency caches --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c41615c..887623c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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-