diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25f8b00910f5d64e9319eb40943ae1b5b89d8f28..88c719d60027aa6a684666cbc1f7430c9f471502 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,9 +29,6 @@ jobs: - name: steps::clippy run: ./script/clippy shell: 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_large run: ./script/clear-target-dir-if-larger-than 300 shell: bash -euxo pipefail {0} @@ -78,8 +75,7 @@ jobs: run: ./script/clippy shell: 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_large run: ./script/clear-target-dir-if-larger-than 250 shell: bash -euxo pipefail {0} @@ -112,9 +108,6 @@ jobs: - name: steps::clippy run: ./script/clippy.ps1 shell: pwsh - - name: steps::cargo_install_nextest - run: cargo install cargo-nextest --locked - shell: pwsh - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than.ps1 250 shell: pwsh diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 431308bd1cfdf6f4385a8f462edcab8c5769ba5f..c5d498fe49c350dcb651f1037d9c470e921f2cb7 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -47,9 +47,6 @@ jobs: - name: steps::clippy run: ./script/clippy.ps1 shell: pwsh - - name: steps::cargo_install_nextest - run: cargo install cargo-nextest --locked - shell: pwsh - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than.ps1 250 shell: pwsh diff --git a/.github/workflows/run_cron_unit_evals.yml b/.github/workflows/run_cron_unit_evals.yml index a692a6707e3d223e7cea039419dc933f68e82896..e7dcb04f77f3507aa861aee30e152850cb36b600 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-sdk shell: 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_large run: ./script/clear-target-dir-if-larger-than 250 shell: bash -euxo pipefail {0} diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index a7d0a145b6d26d964020f48c321556032ae567ed..2322f5d7659366ec312bc76b7501afdab86ff5dc 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -113,9 +113,6 @@ jobs: - name: steps::clippy run: ./script/clippy.ps1 shell: pwsh - - name: steps::cargo_install_nextest - run: cargo install cargo-nextest --locked - shell: pwsh - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than.ps1 250 shell: pwsh @@ -164,8 +161,7 @@ jobs: run: ./script/clippy shell: 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_large run: ./script/clear-target-dir-if-larger-than 250 shell: bash -euxo pipefail {0} @@ -200,9 +196,6 @@ jobs: - name: steps::clippy run: ./script/clippy shell: 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_large run: ./script/clear-target-dir-if-larger-than 300 shell: bash -euxo pipefail {0} diff --git a/.github/workflows/run_unit_evals.yml b/.github/workflows/run_unit_evals.yml index b4da67e25c48909d5f01cdd6e8c2cbab9d0b8c67..d4d4529a30e1abfc4be06e7a39640d09f6b06a63 100644 --- a/.github/workflows/run_unit_evals.yml +++ b/.github/workflows/run_unit_evals.yml @@ -46,8 +46,7 @@ jobs: run: ./script/download-wasi-sdk shell: 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_large run: ./script/clear-target-dir-if-larger-than 250 shell: 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.rs index e3f001f8c2b722584a8cb117ad6980c71df95854..fd9f696dc9537ec21388dc2a287eb52b6334ce70 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.rs index 2c2cd306cd26ea3695f6f94db3e571cffe427b0c..f8212fed243c1c3bccffe7240ee152fa203e14d2 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.rs index 3ca3610a5eca612d98154495e9ad6daf03d09997..969dd35db07dc6ed315e0fa3e3ae2b69934e8b95 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 { named::bash("cargo fmt --all -- --check") } -pub fn cargo_install_nextest(platform: Platform) -> Step { - named::run(platform, "cargo install cargo-nextest --locked") +pub fn cargo_install_nextest() -> Step { + named::uses("taiki-e", "install-action", "nextest") } pub fn cargo_nextest(platform: Platform) -> Step {