Skip to content

Commit 70f555f

Browse files
committed
ci: use patched version of sccache to work around macOS issue
This avoids sccache from attempting to remove files that have already been removed.
1 parent 1f6d8cf commit 70f555f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@ jobs:
143143
~/.cargo/bin/sccache
144144
~/.cargo/bin/mdbook
145145
~/.cargo/bin/mdbook-linkcheck
146-
key: ubuntu-24.04_sccache-0.9.1_mdbook-0.4.36_mdbook-linkcheck-0.7.7
146+
key: ubuntu-24.04_sccache-0.9.1-patched_mdbook-0.4.36_mdbook-linkcheck-0.7.7
147147
- name: "Build Rust tools"
148148
if: steps.rust-tools-cache.outputs.cache-hit != 'true'
149149
# Do not build with storage backends enabled, we only need local
150+
# cargo install --locked --no-default-features --version 0.9.1 sccache
150151
run: |
151-
cargo install --locked --no-default-features --version 0.9.1 sccache
152+
cargo install --locked --no-default-features --git=https://github.com/ahayzen-kdab/sccache --branch=2092-ignore-notfound-errors sccache
152153
cargo install --version 0.4.36 mdbook
153154
cargo install --version 0.7.7 mdbook-linkcheck
154155
# We want our compiler cache to always update to the newest state.
@@ -418,12 +419,13 @@ jobs:
418419
${{ matrix.cargo_dir }}/bin/sccache${{ matrix.exe_suffix }}
419420
${{ matrix.cargo_dir }}/bin/mdbook${{ matrix.exe_suffix }}
420421
${{ matrix.cargo_dir }}/bin/mdbook-linkcheck${{ matrix.exe_suffix }}
421-
key: ${{ matrix.os }}_sccache-0.9.1_mdbook-0.4.36_mdbook-linkcheck-0.7.7
422+
key: ${{ matrix.os }}_sccache-0.9.1-patched_mdbook-0.4.36_mdbook-linkcheck-0.7.7
422423
- name: "Build Rust tools"
423424
if: steps.rust-tools-cache.outputs.cache-hit != 'true'
424425
# Do not build with storage backends enabled, we only need local
426+
# cargo install --locked --no-default-features --version 0.9.1 sccache
425427
run: |
426-
cargo install --locked --no-default-features --version 0.9.1 sccache
428+
cargo install --locked --no-default-features --git=https://github.com/ahayzen-kdab/sccache --branch=2092-ignore-notfound-errors sccache
427429
cargo install --version 0.4.36 mdbook
428430
cargo install --version 0.7.7 mdbook-linkcheck
429431

0 commit comments

Comments
 (0)