Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Cache Rust toolchains in Linux namespace cache (#47699)
Piotr Osiewicz21db564353f3
diff --git a/.github/workflows/autofix_pr.yml b/.github/workflows/autofix_pr.ymlindex 7ba17b8d57c..522c867b30f 100644--- a/.github/workflows/autofix_pr.yml+++ b/.github/workflows/autofix_pr.yml@@ -35,6 +35,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}diff --git a/.github/workflows/extension_tests.yml b/.github/workflows/extension_tests.ymlindex 0c18970d814..3763e230954 100644--- a/.github/workflows/extension_tests.yml+++ b/.github/workflows/extension_tests.yml@@ -61,6 +61,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::cargo_fmtrun: cargo fmt --all -- --checkshell: bash -euxo pipefail {0}diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 226133ba24d..ca70d868070 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -61,6 +61,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}@@ -159,6 +160,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_agent_evals.yml b/.github/workflows/run_agent_evals.ymlindex 421d5a1c800..02212516482 100644--- a/.github/workflows/run_agent_evals.yml+++ b/.github/workflows/run_agent_evals.yml@@ -31,6 +31,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_cron_unit_evals.yml b/.github/workflows/run_cron_unit_evals.ymlindex cdfb51cc5b3..d986f4f8c86 100644--- a/.github/workflows/run_cron_unit_evals.yml+++ b/.github/workflows/run_cron_unit_evals.yml@@ -35,6 +35,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex 3a26c4ae426..a348fd74162 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -70,6 +70,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_pnpmuses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2with:@@ -129,6 +130,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}@@ -211,6 +213,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}@@ -297,6 +300,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}@@ -341,6 +345,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}@@ -376,6 +381,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: run_tests::check_dependencies::install_cargo_macheteuses: clechasseur/rs-cargo@8435b10f6e71c2e3d4d3b7573003a8ce4bfc6386with:@@ -413,6 +419,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: run_tests::check_docs::lychee_link_checkuses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332with:@@ -461,6 +468,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: ./script/check-licensesrun: ./script/check-licensesshell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_unit_evals.yml b/.github/workflows/run_unit_evals.ymlindex 8f64a5c8bcf..ced24170f14 100644--- a/.github/workflows/run_unit_evals.yml+++ b/.github/workflows/run_unit_evals.yml@@ -36,6 +36,7 @@ jobs:uses: namespacelabs/nscloud-cache-action@v1with:cache: rust+ path: ~/.rustup- name: steps::setup_linuxrun: ./script/linuxshell: bash -euxo pipefail {0}diff --git a/tooling/xtask/src/tasks/workflows/steps.rs b/tooling/xtask/src/tasks/workflows/steps.rsindex a0b071cd6c3..63ece051ec9 100644--- a/tooling/xtask/src/tasks/workflows/steps.rs+++ b/tooling/xtask/src/tasks/workflows/steps.rs@@ -113,7 +113,9 @@ pub fn clippy(platform: Platform) -> Step<Run> {}pub fn cache_rust_dependencies_namespace() -> Step<Use> {- named::uses("namespacelabs", "nscloud-cache-action", "v1").add_with(("cache", "rust"))+ named::uses("namespacelabs", "nscloud-cache-action", "v1")+ .add_with(("cache", "rust"))+ .add_with(("path", "~/.rustup"))}pub fn setup_linux() -> Step<Run> {