mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Set CCACHE only for github hosted runner (#34670)
I believe this should fix https://github.com/servo/servo/issues/34603#issuecomment-2544621524 Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
2befdd63b8
commit
324e929390
1 changed files with 3 additions and 1 deletions
4
.github/workflows/windows.yml
vendored
4
.github/workflows/windows.yml
vendored
|
@ -45,7 +45,6 @@ on:
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
SHELL: /bin/bash
|
SHELL: /bin/bash
|
||||||
CCACHE: "ccache"
|
|
||||||
CARGO_TARGET_DIR: C:\\a\\servo\\servo\\target
|
CARGO_TARGET_DIR: C:\\a\\servo\\servo\\target
|
||||||
# clang_sys will search msys path before Program Files\LLVM
|
# clang_sys will search msys path before Program Files\LLVM
|
||||||
# so we need to override this behaviour until we update clang-sys
|
# so we need to override this behaviour until we update clang-sys
|
||||||
|
@ -102,6 +101,9 @@ jobs:
|
||||||
# FIXME: “Error: Restoring cache failed: Error: Unable to locate executable file: sh.”
|
# FIXME: “Error: Restoring cache failed: Error: Unable to locate executable file: sh.”
|
||||||
if: ${{ ! fromJSON(needs.runner-select.outputs.is-self-hosted) }}
|
if: ${{ ! fromJSON(needs.runner-select.outputs.is-self-hosted) }}
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
- if: ${{ ! fromJSON(needs.runner-select.outputs.is-self-hosted) }}
|
||||||
|
run: |
|
||||||
|
echo CCACHE=ccache >> $GITHUB_ENV
|
||||||
|
|
||||||
# Install missing tools in a GitHub-hosted runner.
|
# Install missing tools in a GitHub-hosted runner.
|
||||||
# Workaround for https://github.com/actions/runner-images/issues/10001:
|
# Workaround for https://github.com/actions/runner-images/issues/10001:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue