From ac2dbd42a91bd67a4ccfabb971bedda8936fd3e1 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Mon, 24 Nov 2025 16:53:54 +0800 Subject: [PATCH 1/2] chore: fix ccache in windows --- .github/action/setup-ccache/action.yml | 6 +++++- .github/workflows/ci-test.yml | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/action/setup-ccache/action.yml b/.github/action/setup-ccache/action.yml index 09a7ba6..a09fcf6 100644 --- a/.github/action/setup-ccache/action.yml +++ b/.github/action/setup-ccache/action.yml @@ -50,7 +50,11 @@ runs: echo "CMAKE_GENERATOR=Ninja" >> $GITHUB_ENV echo "CMAKE_C_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV echo "CMAKE_CXX_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV - + - if: runner.os == 'Windows' + shell: bash + run: | + echo "CCACHE_SLOPPINESS=include_file_mtime,include_file_ctime,time_macros,pch_defines,file_stat_matches" >> $env:GITHUB_ENV + echo "CCACHE_BASEDIR=$(pwd)" >> $env:GITHUB_ENV - shell: bash run: | set -e diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 37b6738..698fb5d 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -82,10 +82,11 @@ jobs: ccache-${{ runner.os }}-build- - run: npm run build + shell: bash - name: run test for windows - run: | - npm run test:as + shell: bash + run: npm run test:as - name: verify ccache stats run: ccache --show-stats From 60769a3cf8215e889c47bdf1753bef0195fb4e93 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Mon, 24 Nov 2025 17:35:23 +0800 Subject: [PATCH 2/2] fix --- .github/workflows/ci-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 698fb5d..1b83f0d 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -90,3 +90,4 @@ jobs: - name: verify ccache stats run: ccache --show-stats + shell: bash