Skip to content

Commit 40434a6

Browse files
committed
Resolve Windows compiler cache launcher to an absolute path
1 parent a2a733d commit 40434a6

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,18 @@ jobs:
9090
if: runner.os == 'Windows'
9191
run: echo "C:\\Program Files\\LLVM\\bin" >> $env:GITHUB_PATH
9292

93+
- name: Resolve compiler cache launcher (Windows)
94+
if: runner.os == 'Windows'
95+
run: |
96+
$launcher = (Get-Command sccache -CommandType Application -ErrorAction Stop).Source.Replace('\', '/')
97+
"CMAKE_C_COMPILER_LAUNCHER=$launcher" >> $env:GITHUB_ENV
98+
"CMAKE_CXX_COMPILER_LAUNCHER=$launcher" >> $env:GITHUB_ENV
99+
93100
- name: Build (Windows)
94101
if: runner.os == 'Windows'
95102
id: build_windows
96103
run: pip install -e . --group test
97104
env:
98-
CMAKE_C_COMPILER_LAUNCHER: sccache
99-
CMAKE_CXX_COMPILER_LAUNCHER: sccache
100105
SCCACHE_DIR: C:\Users\runneradmin\AppData\Local\sccache
101106
CC: clang-cl
102107
CXX: clang-cl

0 commit comments

Comments
 (0)