Skip to content

Commit e3964d4

Browse files
LeonMatthesKDABahayzen-kdab
authored andcommitted
Add sccache --start-server for debugging
1 parent d70007a commit e3964d4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/github-cxx-qt-tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ jobs:
181181
with:
182182
path: /home/runner/.cache/sccache
183183
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+
184192
- name: "emsdk cache"
185193
uses: actions/cache@v4
186194
id: emsdk-cache
@@ -459,6 +467,22 @@ jobs:
459467
path: ${{ matrix.compiler_cache_path }}
460468
key: ${{ matrix.name }}_compiler_cache
461469

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+
462486
- name: "Install clang-format"
463487
# Note ensure that clang-format runner is updated too
464488
run: |

0 commit comments

Comments
 (0)