diff --git a/.github/workflows/autofix_pr.yml b/.github/workflows/autofix_pr.yml index 7ba17b8d57..522c867b30 100644 --- a/.github/workflows/autofix_pr.yml +++ b/.github/workflows/autofix_pr.yml @@ -35,6 +35,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} diff --git a/.github/workflows/extension_tests.yml b/.github/workflows/extension_tests.yml index 0c18970d81..3763e23095 100644 --- a/.github/workflows/extension_tests.yml +++ b/.github/workflows/extension_tests.yml @@ -61,6 +61,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: steps::cargo_fmt run: cargo fmt --all -- --check shell: bash -euxo pipefail {0} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 226133ba24..ca70d86807 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,6 +61,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} @@ -159,6 +160,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} diff --git a/.github/workflows/run_agent_evals.yml b/.github/workflows/run_agent_evals.yml index 421d5a1c80..0221251648 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@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} diff --git a/.github/workflows/run_cron_unit_evals.yml b/.github/workflows/run_cron_unit_evals.yml index cdfb51cc5b..d986f4f8c8 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@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 3a26c4ae42..a348fd7416 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -70,6 +70,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_pnpm uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 with: @@ -129,6 +130,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} @@ -211,6 +213,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} @@ -297,6 +300,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} @@ -341,6 +345,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} @@ -376,6 +381,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: run_tests::check_dependencies::install_cargo_machete uses: clechasseur/rs-cargo@8435b10f6e71c2e3d4d3b7573003a8ce4bfc6386 with: @@ -413,6 +419,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: run_tests::check_docs::lychee_link_check uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 with: @@ -461,6 +468,7 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust + path: ~/.rustup - name: ./script/check-licenses run: ./script/check-licenses shell: bash -euxo pipefail {0} diff --git a/.github/workflows/run_unit_evals.yml b/.github/workflows/run_unit_evals.yml index 8f64a5c8bc..ced24170f1 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@v1 with: cache: rust + path: ~/.rustup - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} diff --git a/tooling/xtask/src/tasks/workflows/steps.rs b/tooling/xtask/src/tasks/workflows/steps.rs index a0b071cd6c..63ece051ec 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 { } pub fn cache_rust_dependencies_namespace() -> Step { - 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 {