@@ -181,6 +181,14 @@ jobs:
181
181
with :
182
182
path : /home/runner/.cache/sccache
183
183
key : " ${{ env.GITHUB_COMPILER_CACHE_KEY }}"
184
+
185
+ - name : " Start sccache server"
186
+ # If the compiler cache couldn't be restored, we have to create the cache path,
187
+ # as otherwise the server startup fails.
188
+ run : |
189
+ mkdir -p /home/runner/.cache/sccache
190
+ sccache --start-server
191
+
184
192
- name : " emsdk cache"
185
193
uses : actions/cache@v4
186
194
id : emsdk-cache
@@ -459,6 +467,22 @@ jobs:
459
467
path : ${{ matrix.compiler_cache_path }}
460
468
key : ${{ matrix.name }}_compiler_cache
461
469
470
+ - name : " [Windows] Start sccache server"
471
+ # If the compiler cache couldn't be restored, we have to create the cache path,
472
+ # as otherwise the server startup fails.
473
+ if : runner.os == 'Windows'
474
+ run : |
475
+ md ${{ matrix.compiler_cache_path }} -ea 0
476
+ sccache --start-server
477
+
478
+ - name : " [Other] Start sccache server"
479
+ # If the compiler cache couldn't be restored, we have to create the cache path,
480
+ # as otherwise the server startup fails.
481
+ if : runner.os != 'Windows'
482
+ run : |
483
+ mkdir -p ${{ matrix.compiler_cache_path }}
484
+ sccache --start-server
485
+
462
486
- name : " Install clang-format"
463
487
# Note ensure that clang-format runner is updated too
464
488
run : |
0 commit comments