Add namespace cache

MrSubidubi created

Change summary

.github/workflows/run_tests.yml                | 5 +++++
tooling/xtask/src/tasks/workflows/run_tests.rs | 1 +
2 files changed, 6 insertions(+)

Detailed changes

.github/workflows/run_tests.yml 🔗

@@ -549,6 +549,11 @@ jobs:
       run: |
         mkdir -p ./../.cargo
         cp ./.cargo/ci-config.toml ./../.cargo/config.toml
+    - name: steps::cache_rust_dependencies_namespace
+      uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9
+      with:
+        cache: rust
+        path: ~/.rustup
     - name: run_tests::build_visual_tests_binary::cargo_build_visual_tests
       run: cargo build -p zed --bin zed_visual_test_runner --features visual-tests
     - name: steps::cleanup_cargo_config

tooling/xtask/src/tasks/workflows/run_tests.rs 🔗

@@ -612,6 +612,7 @@ fn build_visual_tests_binary() -> NamedJob {
             .runs_on(runners::MAC_DEFAULT)
             .add_step(steps::checkout_repo())
             .add_step(steps::setup_cargo_config(Platform::Mac))
+            .add_step(steps::cache_rust_dependencies_namespace())
             .add_step(cargo_build_visual_tests())
             .add_step(steps::cleanup_cargo_config(Platform::Mac)),
     )