Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Enable namespace caching for clippy on Mac (#47819)
Piotr Osiewicz64df7f2675e4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 4160d6b68ea..c5f21214c89 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -140,6 +140,11 @@ jobs:mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.tomlshell: bash -euxo pipefail {0}+ - name: steps::cache_rust_dependencies_namespace+ uses: namespacelabs/nscloud-cache-action@v1+ with:+ cache: rust+ path: ~/.rustup- name: steps::clippyrun: ./script/clippyshell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex efdeaeb99ae..2c275011f50 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -159,6 +159,11 @@ jobs:mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.tomlshell: bash -euxo pipefail {0}+ - name: steps::cache_rust_dependencies_namespace+ uses: namespacelabs/nscloud-cache-action@v1+ with:+ cache: rust+ path: ~/.rustup- name: steps::clippyrun: ./script/clippyshell: bash -euxo pipefail {0}diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rsindex 99d64ae4be8..1801190dfac 100644--- a/tooling/xtask/src/tasks/workflows/run_tests.rs+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs@@ -320,9 +320,10 @@ pub(crate) fn clippy(platform: Platform) -> NamedJob {.runs_on(runner).add_step(steps::checkout_repo()).add_step(steps::setup_cargo_config(platform))- .when(platform == Platform::Linux, |this| {- this.add_step(steps::cache_rust_dependencies_namespace())- })+ .when(+ platform == Platform::Linux || platform == Platform::Mac,+ |this| this.add_step(steps::cache_rust_dependencies_namespace()),+ ).when(platform == Platform::Linux,steps::install_linux_dependencies,