Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Install pre-built cargo nextest instead of rolling our own (#42556)
Piotr Osiewicz73e5df6445e2
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 25f8b00910f..88c719d6002 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -29,9 +29,6 @@ jobs:- name: steps::clippyrun: ./script/clippyshell: bash -euxo pipefail {0}- - name: steps::cargo_install_nextest- run: cargo install cargo-nextest --locked- shell: bash -euxo pipefail {0}- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300shell: bash -euxo pipefail {0}@@ -78,8 +75,7 @@ jobs:run: ./script/clippyshell: bash -euxo pipefail {0}- name: steps::cargo_install_nextest- run: cargo install cargo-nextest --locked- shell: bash -euxo pipefail {0}+ uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250shell: bash -euxo pipefail {0}@@ -112,9 +108,6 @@ jobs:- name: steps::clippyrun: ./script/clippy.ps1shell: pwsh- - name: steps::cargo_install_nextest- run: cargo install cargo-nextest --locked- shell: pwsh- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than.ps1 250shell: pwshdiff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.ymlindex 431308bd1cf..c5d498fe49c 100644--- a/.github/workflows/release_nightly.yml+++ b/.github/workflows/release_nightly.yml@@ -47,9 +47,6 @@ jobs:- name: steps::clippyrun: ./script/clippy.ps1shell: pwsh- - name: steps::cargo_install_nextest- run: cargo install cargo-nextest --locked- shell: pwsh- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than.ps1 250shell: pwshdiff --git a/.github/workflows/run_cron_unit_evals.yml b/.github/workflows/run_cron_unit_evals.ymlindex a692a6707e3..e7dcb04f77f 100644--- a/.github/workflows/run_cron_unit_evals.yml+++ b/.github/workflows/run_cron_unit_evals.yml@@ -37,8 +37,7 @@ jobs:run: ./script/download-wasi-sdkshell: bash -euxo pipefail {0}- name: steps::cargo_install_nextest- run: cargo install cargo-nextest --locked- shell: bash -euxo pipefail {0}+ uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250shell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex a7d0a145b6d..2322f5d7659 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -113,9 +113,6 @@ jobs:- name: steps::clippyrun: ./script/clippy.ps1shell: pwsh- - name: steps::cargo_install_nextest- run: cargo install cargo-nextest --locked- shell: pwsh- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than.ps1 250shell: pwsh@@ -164,8 +161,7 @@ jobs:run: ./script/clippyshell: bash -euxo pipefail {0}- name: steps::cargo_install_nextest- run: cargo install cargo-nextest --locked- shell: bash -euxo pipefail {0}+ uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250shell: bash -euxo pipefail {0}@@ -200,9 +196,6 @@ jobs:- name: steps::clippyrun: ./script/clippyshell: bash -euxo pipefail {0}- - name: steps::cargo_install_nextest- run: cargo install cargo-nextest --locked- shell: bash -euxo pipefail {0}- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300shell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_unit_evals.yml b/.github/workflows/run_unit_evals.ymlindex b4da67e25c4..d4d4529a30e 100644--- a/.github/workflows/run_unit_evals.yml+++ b/.github/workflows/run_unit_evals.yml@@ -46,8 +46,7 @@ jobs:run: ./script/download-wasi-sdkshell: bash -euxo pipefail {0}- name: steps::cargo_install_nextest- run: cargo install cargo-nextest --locked- shell: bash -euxo pipefail {0}+ uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250shell: bash -euxo pipefail {0}diff --git a/tooling/xtask/src/tasks/workflows/run_agent_evals.rs b/tooling/xtask/src/tasks/workflows/run_agent_evals.rsindex e3f001f8c2b..fd9f696dc95 100644--- a/tooling/xtask/src/tasks/workflows/run_agent_evals.rs+++ b/tooling/xtask/src/tasks/workflows/run_agent_evals.rs@@ -126,7 +126,7 @@ fn unit_evals(commit: Option<&Input>) -> Job {.add_step(steps::setup_cargo_config(Platform::Linux)).add_step(steps::cache_rust_dependencies_namespace()).map(steps::install_linux_dependencies)- .add_step(steps::cargo_install_nextest(Platform::Linux))+ .add_step(steps::cargo_install_nextest()).add_step(steps::clear_target_dir_if_large(Platform::Linux)).add_step(match commit {Some(commit) => script_step.add_env(("UNIT_EVAL_COMMIT", commit)),diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rsindex 2c2cd306cd2..f8212fed243 100644--- a/tooling/xtask/src/tasks/workflows/run_tests.rs+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs@@ -321,7 +321,9 @@ pub(crate) fn run_platform_tests(platform: Platform) -> NamedJob {).add_step(steps::setup_node()).add_step(steps::clippy(platform))- .add_step(steps::cargo_install_nextest(platform))+ .when(platform == Platform::Linux, |job| {+ job.add_step(steps::cargo_install_nextest())+ }).add_step(steps::clear_target_dir_if_large(platform)).add_step(steps::cargo_nextest(platform)).add_step(steps::cleanup_cargo_config(platform)),diff --git a/tooling/xtask/src/tasks/workflows/steps.rs b/tooling/xtask/src/tasks/workflows/steps.rsindex 3ca3610a5ec..969dd35db07 100644--- a/tooling/xtask/src/tasks/workflows/steps.rs+++ b/tooling/xtask/src/tasks/workflows/steps.rs@@ -48,8 +48,8 @@ pub fn cargo_fmt() -> Step<Run> {named::bash("cargo fmt --all -- --check")}-pub fn cargo_install_nextest(platform: Platform) -> Step<Run> {- named::run(platform, "cargo install cargo-nextest --locked")+pub fn cargo_install_nextest() -> Step<Use> {+ named::uses("taiki-e", "install-action", "nextest")}pub fn cargo_nextest(platform: Platform) -> Step<Run> {