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..1b83f0d 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -82,10 +82,12 @@ 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 + shell: bash