From 692e176e347260ff76ff748182d4b3e2504420ae Mon Sep 17 00:00:00 2001 From: dijunkun Date: Sun, 23 Nov 2025 00:35:26 +0800 Subject: [PATCH] [ci] use github.sha instead of hashFiles for xmake dependency cache --- .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 52e8ce7..b7c792a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -174,7 +174,7 @@ jobs: uses: actions/cache@v4 with: path: ~/.xmake/packages - key: ${{ runner.os }}-xmake-deps-${{ matrix.cache-key }}-${{ hashFiles('**/xmake.lua') }} + key: ${{ runner.os }}-xmake-deps-${{ matrix.cache-key }}-${{ github.sha }} restore-keys: | ${{ runner.os }}-xmake-deps-${{ matrix.cache-key }}- @@ -237,7 +237,7 @@ jobs: uses: actions/cache@v4 with: path: D:\xmake_global\.xmake\packages - key: ${{ runner.os }}-xmake-deps-intel-${{ hashFiles('**/xmake.lua') }} + key: ${{ runner.os }}-xmake-deps-intel-${{ github.sha }} restore-keys: | ${{ runner.os }}-xmake-deps-intel-