Skip to content

Commit 888ad5d

Browse files
authored
chore: fix ccache in windows (#101)
1 parent 4ae5f48 commit 888ad5d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/action/setup-ccache/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ runs:
5050
echo "CMAKE_GENERATOR=Ninja" >> $GITHUB_ENV
5151
echo "CMAKE_C_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
5252
echo "CMAKE_CXX_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
53-
53+
- if: runner.os == 'Windows'
54+
shell: bash
55+
run: |
56+
echo "CCACHE_SLOPPINESS=include_file_mtime,include_file_ctime,time_macros,pch_defines,file_stat_matches" >> $env:GITHUB_ENV
57+
echo "CCACHE_BASEDIR=$(pwd)" >> $env:GITHUB_ENV
5458
- shell: bash
5559
run: |
5660
set -e

.github/workflows/ci-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ jobs:
8282
ccache-${{ runner.os }}-build-
8383
8484
- run: npm run build
85+
shell: bash
8586

8687
- name: run test for windows
87-
run: |
88-
npm run test:as
88+
shell: bash
89+
run: npm run test:as
8990

9091
- name: verify ccache stats
9192
run: ccache --show-stats
93+
shell: bash

0 commit comments

Comments
 (0)