Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Install sccache *after* we rm-rf target... (#49035)
Conrad Irwin85736ec89221
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 01445c58b84..accefe427c7 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -26,13 +26,6 @@ jobs:with:cache: rustpath: ~/.rustup- - name: steps::setup_sccache- run: ./script/setup-sccache- env:- R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}- R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}- R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}- SCCACHE_BUCKET: sccache-zed- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -41,6 +34,13 @@ jobs:uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300+ - name: steps::setup_sccache+ run: ./script/setup-sccache+ env:+ R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}+ R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}+ R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}+ SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fast- name: steps::show_sccache_stats@@ -73,13 +73,6 @@ jobs:run: ./script/install-mold- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- - name: steps::setup_sccache- run: ./script/setup-sccache- env:- R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}- R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}- R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}- SCCACHE_BUCKET: sccache-zed- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -88,6 +81,13 @@ jobs:uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250+ - name: steps::setup_sccache+ run: ./script/setup-sccache+ env:+ R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}+ R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}+ R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}+ SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fast- name: steps::show_sccache_stats@@ -118,6 +118,13 @@ jobs:New-Item -ItemType Directory -Path "./../.cargo" -ForceCopy-Item -Path "./.cargo/ci-config.toml" -Destination "./../.cargo/config.toml"shell: pwsh+ - name: steps::setup_node+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020+ with:+ node-version: '20'+ - name: steps::clear_target_dir_if_large+ run: ./script/clear-target-dir-if-larger-than.ps1 250+ shell: pwsh- name: steps::setup_sccacherun: ./script/setup-sccache.ps1shell: pwsh@@ -126,13 +133,6 @@ jobs:R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- - name: steps::setup_node- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020- with:- node-version: '20'- - name: steps::clear_target_dir_if_large- run: ./script/clear-target-dir-if-larger-than.ps1 250- shell: pwsh- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fastshell: pwshdiff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.ymlindex d6969a34c53..1819833dce2 100644--- a/.github/workflows/release_nightly.yml+++ b/.github/workflows/release_nightly.yml@@ -38,6 +38,13 @@ jobs:New-Item -ItemType Directory -Path "./../.cargo" -ForceCopy-Item -Path "./.cargo/ci-config.toml" -Destination "./../.cargo/config.toml"shell: pwsh+ - name: steps::setup_node+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020+ with:+ node-version: '20'+ - name: steps::clear_target_dir_if_large+ run: ./script/clear-target-dir-if-larger-than.ps1 250+ shell: pwsh- name: steps::setup_sccacherun: ./script/setup-sccache.ps1shell: pwsh@@ -46,13 +53,6 @@ jobs:R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- - name: steps::setup_node- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020- with:- node-version: '20'- - name: steps::clear_target_dir_if_large- run: ./script/clear-target-dir-if-larger-than.ps1 250- shell: pwsh- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fastshell: pwshdiff --git a/.github/workflows/run_cron_unit_evals.yml b/.github/workflows/run_cron_unit_evals.ymlindex 9b7d7f8bda9..e57b54e4f22 100644--- a/.github/workflows/run_cron_unit_evals.yml+++ b/.github/workflows/run_cron_unit_evals.yml@@ -39,6 +39,10 @@ jobs:run: ./script/install-mold- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk+ - name: steps::cargo_install_nextest+ uses: taiki-e/install-action@nextest+ - name: steps::clear_target_dir_if_large+ run: ./script/clear-target-dir-if-larger-than 250- name: steps::setup_sccacherun: ./script/setup-sccacheenv:@@ -46,10 +50,6 @@ jobs:R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- - name: steps::cargo_install_nextest- uses: taiki-e/install-action@nextest- - name: steps::clear_target_dir_if_large- run: ./script/clear-target-dir-if-larger-than 250- name: ./script/run-unit-evalsrun: ./script/run-unit-evalsenv:diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex d4f2fd6fb04..fb2e74aaedb 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -252,6 +252,13 @@ jobs:New-Item -ItemType Directory -Path "./../.cargo" -ForceCopy-Item -Path "./.cargo/ci-config.toml" -Destination "./../.cargo/config.toml"shell: pwsh+ - name: steps::setup_node+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020+ with:+ node-version: '20'+ - name: steps::clear_target_dir_if_large+ run: ./script/clear-target-dir-if-larger-than.ps1 250+ shell: pwsh- name: steps::setup_sccacherun: ./script/setup-sccache.ps1shell: pwsh@@ -260,13 +267,6 @@ jobs:R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- - name: steps::setup_node- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020- with:- node-version: '20'- - name: steps::clear_target_dir_if_large- run: ./script/clear-target-dir-if-larger-than.ps1 250- shell: pwsh- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fast${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }}shell: pwsh@@ -304,13 +304,6 @@ jobs:run: ./script/install-mold- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- - name: steps::setup_sccache- run: ./script/setup-sccache- env:- R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}- R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}- R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}- SCCACHE_BUCKET: sccache-zed- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -319,6 +312,13 @@ jobs:uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250+ - name: steps::setup_sccache+ run: ./script/setup-sccache+ env:+ R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}+ R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}+ R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}+ SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fast${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }}- name: steps::show_sccache_stats@@ -355,13 +355,6 @@ jobs:with:cache: rustpath: ~/.rustup- - name: steps::setup_sccache- run: ./script/setup-sccache- env:- R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}- R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}- R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}- SCCACHE_BUCKET: sccache-zed- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -370,6 +363,13 @@ jobs:uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300+ - name: steps::setup_sccache+ run: ./script/setup-sccache+ env:+ R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}+ R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}+ R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}+ SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fast${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }}- name: steps::show_sccache_statsdiff --git a/.github/workflows/run_unit_evals.yml b/.github/workflows/run_unit_evals.ymlindex 4aa54a525ce..2259d2498b7 100644--- a/.github/workflows/run_unit_evals.yml+++ b/.github/workflows/run_unit_evals.yml@@ -42,6 +42,10 @@ jobs:run: ./script/install-mold- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk+ - name: steps::cargo_install_nextest+ uses: taiki-e/install-action@nextest+ - name: steps::clear_target_dir_if_large+ run: ./script/clear-target-dir-if-larger-than 250- name: steps::setup_sccacherun: ./script/setup-sccacheenv:@@ -49,10 +53,6 @@ jobs:R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- - name: steps::cargo_install_nextest- uses: taiki-e/install-action@nextest- - name: steps::clear_target_dir_if_large- run: ./script/clear-target-dir-if-larger-than 250- name: ./script/run-unit-evalsrun: ./script/run-unit-evalsenv:diff --git a/tooling/xtask/src/tasks/workflows/run_agent_evals.rs b/tooling/xtask/src/tasks/workflows/run_agent_evals.rsindex ac9dddfad18..e83d3a07f07 100644--- a/tooling/xtask/src/tasks/workflows/run_agent_evals.rs+++ b/tooling/xtask/src/tasks/workflows/run_agent_evals.rs@@ -140,9 +140,9 @@ fn cron_unit_evals_job() -> Job {.add_step(steps::setup_cargo_config(Platform::Linux)).add_step(steps::cache_rust_dependencies_namespace()).map(steps::install_linux_dependencies)- .add_step(steps::setup_sccache(Platform::Linux)).add_step(steps::cargo_install_nextest()).add_step(steps::clear_target_dir_if_large(Platform::Linux))+ .add_step(steps::setup_sccache(Platform::Linux)).add_step(script_step).add_step(steps::show_sccache_stats(Platform::Linux)).add_step(steps::cleanup_cargo_config(Platform::Linux))@@ -157,9 +157,9 @@ fn unit_evals(commit: Option<&WorkflowInput>) -> Job {.add_step(steps::setup_cargo_config(Platform::Linux)).add_step(steps::cache_rust_dependencies_namespace()).map(steps::install_linux_dependencies)- .add_step(steps::setup_sccache(Platform::Linux)).add_step(steps::cargo_install_nextest()).add_step(steps::clear_target_dir_if_large(Platform::Linux))+ .add_step(steps::setup_sccache(Platform::Linux)).add_step(match commit {Some(commit) => script_step.add_env(("UNIT_EVAL_COMMIT", commit)),None => script_step,diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rsindex 49c4488dc95..393675e9830 100644--- a/tooling/xtask/src/tasks/workflows/run_tests.rs+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs@@ -421,13 +421,13 @@ fn run_platform_tests_impl(platform: Platform, filter_packages: bool) -> NamedJoplatform == Platform::Linux,steps::install_linux_dependencies,)- .add_step(steps::setup_sccache(platform)).add_step(steps::setup_node()).when(platform == Platform::Linux || platform == Platform::Mac,|job| job.add_step(steps::cargo_install_nextest()),).add_step(steps::clear_target_dir_if_large(platform))+ .add_step(steps::setup_sccache(platform)).when(filter_packages, |job| {job.add_step(steps::cargo_nextest(platform).with_changed_packages_filter("orchestrate"),