diff --git a/.github/workflows/compare_perf.yml b/.github/workflows/compare_perf.yml index a315ce5edd103ba33cf58c9042b77fb55ac85440..e5a2d4f9c928eac2d1b1cf54ed374f8b0cca5d25 100644 --- a/.github/workflows/compare_perf.yml +++ b/.github/workflows/compare_perf.yml @@ -34,12 +34,6 @@ jobs: run: ./script/install-mold - name: steps::download_wasi_sdk run: ./script/download-wasi-sdk - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: compare_perf::run_perf::install_hyperfine uses: taiki-e/install-action@hyperfine - name: steps::git_checkout diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de1572da86ee3f2b1c4cc778118c2fd5a04d2a8d..01445c58b84c728e6a5d2efcb6679c1b70ada199 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,12 +41,6 @@ jobs: uses: taiki-e/install-action@nextest - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: steps::cargo_nextest run: cargo nextest run --workspace --no-fail-fast - name: steps::show_sccache_stats @@ -94,12 +88,6 @@ jobs: uses: taiki-e/install-action@nextest - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 250 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: steps::cargo_nextest run: cargo nextest run --workspace --no-fail-fast - name: steps::show_sccache_stats @@ -145,16 +133,6 @@ jobs: - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than.ps1 250 shell: pwsh - - name: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: steps::cargo_nextest run: cargo nextest run --workspace --no-fail-fast shell: pwsh @@ -191,12 +169,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: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: steps::clippy run: ./script/clippy - name: steps::show_sccache_stats @@ -232,12 +204,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: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: steps::clippy run: ./script/clippy - name: steps::show_sccache_stats @@ -264,16 +230,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: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: steps::clippy run: ./script/clippy.ps1 shell: pwsh @@ -352,12 +308,6 @@ jobs: run: ./script/install-mold - name: steps::download_wasi_sdk run: ./script/download-wasi-sdk - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: ./script/bundle-linux run: ./script/bundle-linux - name: '@actions/upload-artifact zed-linux-aarch64.tar.gz' @@ -398,12 +348,6 @@ jobs: run: ./script/install-mold - name: steps::download_wasi_sdk run: ./script/download-wasi-sdk - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: ./script/bundle-linux run: ./script/bundle-linux - name: '@actions/upload-artifact zed-linux-x86_64.tar.gz' @@ -449,12 +393,6 @@ jobs: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: run_bundling::bundle_mac::bundle_mac run: ./script/bundle-mac aarch64-apple-darwin - name: '@actions/upload-artifact Zed-aarch64.dmg' @@ -500,12 +438,6 @@ jobs: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: run_bundling::bundle_mac::bundle_mac run: ./script/bundle-mac x86_64-apple-darwin - name: '@actions/upload-artifact Zed-x86_64.dmg' @@ -549,16 +481,6 @@ jobs: uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b with: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - - name: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: run_bundling::bundle_windows::bundle_windows run: script/bundle-windows.ps1 -Architecture aarch64 shell: pwsh @@ -604,16 +526,6 @@ jobs: uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b with: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - - name: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: run_bundling::bundle_windows::bundle_windows run: script/bundle-windows.ps1 -Architecture x86_64 shell: pwsh diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 3770d26dcf9242aba140a6a30112e4c65980c4b9..d6969a34c53c3b770fc0c60618469149f555cdb2 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -53,16 +53,6 @@ jobs: - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than.ps1 250 shell: pwsh - - name: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: steps::cargo_nextest run: cargo nextest run --workspace --no-fail-fast shell: pwsh @@ -96,16 +86,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: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: steps::clippy run: ./script/clippy.ps1 shell: pwsh @@ -144,12 +124,6 @@ jobs: run: ./script/install-mold - name: steps::download_wasi_sdk run: ./script/download-wasi-sdk - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: ./script/bundle-linux run: ./script/bundle-linux - name: '@actions/upload-artifact zed-linux-aarch64.tar.gz' @@ -196,12 +170,6 @@ jobs: run: ./script/install-mold - name: steps::download_wasi_sdk run: ./script/download-wasi-sdk - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: ./script/bundle-linux run: ./script/bundle-linux - name: '@actions/upload-artifact zed-linux-x86_64.tar.gz' @@ -253,12 +221,6 @@ jobs: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: run_bundling::bundle_mac::bundle_mac run: ./script/bundle-mac aarch64-apple-darwin - name: '@actions/upload-artifact Zed-aarch64.dmg' @@ -310,12 +272,6 @@ jobs: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: run_bundling::bundle_mac::bundle_mac run: ./script/bundle-mac x86_64-apple-darwin - name: '@actions/upload-artifact Zed-x86_64.dmg' @@ -367,16 +323,6 @@ jobs: uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b with: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - - name: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: run_bundling::bundle_windows::bundle_windows run: script/bundle-windows.ps1 -Architecture aarch64 shell: pwsh @@ -430,16 +376,6 @@ jobs: uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b with: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - - name: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: run_bundling::bundle_windows::bundle_windows run: script/bundle-windows.ps1 -Architecture x86_64 shell: pwsh diff --git a/.github/workflows/run_bundling.yml b/.github/workflows/run_bundling.yml index dd7435edf2fe015b2808c718cabff66c1fcba96a..2b536425a1dc4b9663c726fd9259c95e0626efda 100644 --- a/.github/workflows/run_bundling.yml +++ b/.github/workflows/run_bundling.yml @@ -34,12 +34,6 @@ jobs: run: ./script/install-mold - name: steps::download_wasi_sdk run: ./script/download-wasi-sdk - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: ./script/bundle-linux run: ./script/bundle-linux - name: '@actions/upload-artifact zed-linux-aarch64.tar.gz' @@ -79,12 +73,6 @@ jobs: run: ./script/install-mold - name: steps::download_wasi_sdk run: ./script/download-wasi-sdk - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: ./script/bundle-linux run: ./script/bundle-linux - name: '@actions/upload-artifact zed-linux-x86_64.tar.gz' @@ -129,12 +117,6 @@ jobs: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: run_bundling::bundle_mac::bundle_mac run: ./script/bundle-mac aarch64-apple-darwin - name: '@actions/upload-artifact Zed-aarch64.dmg' @@ -179,12 +161,6 @@ jobs: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: run_bundling::bundle_mac::bundle_mac run: ./script/bundle-mac x86_64-apple-darwin - name: '@actions/upload-artifact Zed-x86_64.dmg' @@ -227,16 +203,6 @@ jobs: uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b with: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - - name: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: run_bundling::bundle_windows::bundle_windows run: script/bundle-windows.ps1 -Architecture aarch64 shell: pwsh @@ -281,16 +247,6 @@ jobs: uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b with: token: ${{ secrets.SENTRY_AUTH_TOKEN }} - - name: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: run_bundling::bundle_windows::bundle_windows run: script/bundle-windows.ps1 -Architecture x86_64 shell: pwsh diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index f504ea3357d8453970fb916f3ac118457b22d7bd..d4f2fd6fb044fdf4c71d65449fede615034fabeb 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -162,16 +162,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: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: steps::clippy run: ./script/clippy.ps1 shell: pwsh @@ -211,12 +201,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: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: steps::clippy run: ./script/clippy - name: steps::show_sccache_stats @@ -248,12 +232,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: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: steps::clippy run: ./script/clippy - name: steps::show_sccache_stats @@ -289,16 +267,6 @@ jobs: - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than.ps1 250 shell: pwsh - - name: install_cargo_mtime - run: |- - New-Item -ItemType Directory -Path "target" -Force - Invoke-WebRequest -Uri "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-pc-windows-msvc-v0.1.2.tar.gz" -OutFile "target/cargo-mtime.tar.gz" - tar xzf target/cargo-mtime.tar.gz -C target - Remove-Item target/cargo-mtime.tar.gz - shell: pwsh - - name: run_cargo_mtime - run: ./target/cargo-mtime.exe . target/cargo-mtime.db - shell: pwsh - name: steps::cargo_nextest run: cargo nextest run --workspace --no-fail-fast${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }} shell: pwsh @@ -351,12 +319,6 @@ jobs: uses: taiki-e/install-action@nextest - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 250 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-x86_64-unknown-linux-musl-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: steps::cargo_nextest run: 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 @@ -408,12 +370,6 @@ jobs: uses: taiki-e/install-action@nextest - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 - - name: install_cargo_mtime - run: |- - mkdir -p target - curl -sL "https://github.com/zed-industries/cargo-mtime/releases/download/v0.1.2/cargo-mtime-aarch64-apple-darwin-v0.1.2.tar.gz" | tar xz -C target - - name: run_cargo_mtime - run: ./target/cargo-mtime . target/cargo-mtime.db - name: steps::cargo_nextest run: 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 diff --git a/tooling/xtask/src/tasks/workflows/compare_perf.rs b/tooling/xtask/src/tasks/workflows/compare_perf.rs index 8bc623369b45ff593d0e1b1526e8cbe86be615f1..1d111acc4f8a4dc47edea6f45c0b93c845b7cda2 100644 --- a/tooling/xtask/src/tasks/workflows/compare_perf.rs +++ b/tooling/xtask/src/tasks/workflows/compare_perf.rs @@ -55,8 +55,6 @@ pub fn run_perf( .add_step(steps::checkout_repo()) .add_step(steps::setup_cargo_config(runners::Platform::Linux)) .map(steps::install_linux_dependencies) - .add_step(steps::install_cargo_mtime(runners::Platform::Linux)) - .add_step(steps::run_cargo_mtime(runners::Platform::Linux)) .add_step(install_hyperfine()) .add_step(steps::git_checkout(base)) .add_step(cargo_perf_test(base, crate_name)) diff --git a/tooling/xtask/src/tasks/workflows/run_bundling.rs b/tooling/xtask/src/tasks/workflows/run_bundling.rs index c374ada5de94dc1f56b9c3e188ab5245cb42a568..7fa82e80c52b9e6faec6a377d906269e7a3dbb77 100644 --- a/tooling/xtask/src/tasks/workflows/run_bundling.rs +++ b/tooling/xtask/src/tasks/workflows/run_bundling.rs @@ -102,8 +102,6 @@ pub(crate) fn bundle_mac( .add_step(steps::setup_node()) .add_step(steps::setup_sentry()) .add_step(steps::clear_target_dir_if_large(runners::Platform::Mac)) - .add_step(steps::install_cargo_mtime(Platform::Mac)) - .add_step(steps::run_cargo_mtime(Platform::Mac)) .add_step(bundle_mac(arch)) .add_step(upload_artifact(&format!( "target/{arch}-apple-darwin/release/{artifact_name}" @@ -154,8 +152,6 @@ pub(crate) fn bundle_linux( }) .add_step(steps::setup_sentry()) .map(steps::install_linux_dependencies) - .add_step(steps::install_cargo_mtime_for_arch(Platform::Linux, arch)) - .add_step(steps::run_cargo_mtime(Platform::Linux)) .add_step(steps::script("./script/bundle-linux")) .add_step(upload_artifact(&format!("target/release/{artifact_name}"))) .add_step(upload_artifact(&format!( @@ -195,8 +191,6 @@ pub(crate) fn bundle_windows( job.add_step(set_release_channel(platform, release_channel)) }) .add_step(steps::setup_sentry()) - .add_step(steps::install_cargo_mtime(Platform::Windows)) - .add_step(steps::run_cargo_mtime(Platform::Windows)) .add_step(bundle_windows(arch)) .add_step(upload_artifact(&format!("target/{artifact_name}"))) .add_step(upload_artifact(&format!( diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rs index fc71bbf6b5ec062e837d5efc25caea017ba7a6a7..49c4488dc95620c00a6a8f929cfb756d9c4eb6fa 100644 --- a/tooling/xtask/src/tasks/workflows/run_tests.rs +++ b/tooling/xtask/src/tasks/workflows/run_tests.rs @@ -374,8 +374,6 @@ pub(crate) fn clippy(platform: Platform) -> NamedJob { steps::install_linux_dependencies, ) .add_step(steps::setup_sccache(platform)) - .add_step(steps::install_cargo_mtime(platform)) - .add_step(steps::run_cargo_mtime(platform)) .add_step(steps::clippy(platform)) .add_step(steps::show_sccache_stats(platform)), } @@ -430,8 +428,6 @@ fn run_platform_tests_impl(platform: Platform, filter_packages: bool) -> NamedJo |job| job.add_step(steps::cargo_install_nextest()), ) .add_step(steps::clear_target_dir_if_large(platform)) - .add_step(steps::install_cargo_mtime(platform)) - .add_step(steps::run_cargo_mtime(platform)) .when(filter_packages, |job| { job.add_step( steps::cargo_nextest(platform).with_changed_packages_filter("orchestrate"), diff --git a/tooling/xtask/src/tasks/workflows/steps.rs b/tooling/xtask/src/tasks/workflows/steps.rs index 8489208f8993e471e01e7bca0c692090f988f887..8fffd1b0f46bb603c33fe41a795653fe8c43d036 100644 --- a/tooling/xtask/src/tasks/workflows/steps.rs +++ b/tooling/xtask/src/tasks/workflows/steps.rs @@ -1,13 +1,8 @@ use gh_workflow::*; -use crate::tasks::workflows::{ - runners::{Arch, Platform}, - vars, - vars::StepOutput, -}; +use crate::tasks::workflows::{runners::Platform, vars, vars::StepOutput}; const SCCACHE_R2_BUCKET: &str = "sccache-zed"; -const CARGO_MTIME_VERSION: &str = "v0.1.2"; const BASH_SHELL: &str = "bash -euxo pipefail {0}"; // https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstepsshell @@ -162,62 +157,6 @@ pub fn cache_rust_dependencies_namespace() -> Step { .add_with(("path", "~/.rustup")) } -fn cargo_mtime_target(platform: Platform, arch: Arch) -> &'static str { - match (platform, arch) { - (Platform::Linux, Arch::X86_64) => "x86_64-unknown-linux-musl", - (Platform::Linux, Arch::AARCH64) => "aarch64-unknown-linux-musl", - (Platform::Mac, Arch::X86_64) => "x86_64-apple-darwin", - (Platform::Mac, Arch::AARCH64) => "aarch64-apple-darwin", - (Platform::Windows, Arch::X86_64) => "x86_64-pc-windows-msvc", - (Platform::Windows, Arch::AARCH64) => "aarch64-pc-windows-msvc", - } -} - -fn default_runner_arch(platform: Platform) -> Arch { - match platform { - Platform::Linux => Arch::X86_64, - Platform::Mac => Arch::AARCH64, - Platform::Windows => Arch::X86_64, - } -} - -pub fn install_cargo_mtime(platform: Platform) -> Step { - install_cargo_mtime_for_arch(platform, default_runner_arch(platform)) -} - -pub fn install_cargo_mtime_for_arch(platform: Platform, arch: Arch) -> Step { - let target = cargo_mtime_target(platform, arch); - let url = format!( - "https://github.com/zed-industries/cargo-mtime/releases/download/{}/cargo-mtime-{}-{}.tar.gz", - CARGO_MTIME_VERSION, target, CARGO_MTIME_VERSION - ); - match platform { - Platform::Windows => Step::new("install_cargo_mtime") - .run(format!( - "New-Item -ItemType Directory -Path \"target\" -Force\n\ - Invoke-WebRequest -Uri \"{url}\" -OutFile \"target/cargo-mtime.tar.gz\"\n\ - tar xzf target/cargo-mtime.tar.gz -C target\n\ - Remove-Item target/cargo-mtime.tar.gz" - )) - .shell(PWSH_SHELL), - Platform::Linux | Platform::Mac => Step::new("install_cargo_mtime").run(format!( - "mkdir -p target\n\ - curl -sL \"{url}\" | tar xz -C target" - )), - } -} - -pub fn run_cargo_mtime(platform: Platform) -> Step { - match platform { - Platform::Windows => Step::new("run_cargo_mtime") - .run("./target/cargo-mtime.exe . target/cargo-mtime.db") - .shell(PWSH_SHELL), - Platform::Linux | Platform::Mac => { - Step::new("run_cargo_mtime").run("./target/cargo-mtime . target/cargo-mtime.db") - } - } -} - pub fn setup_sccache(platform: Platform) -> Step { let step = match platform { Platform::Windows => named::pwsh("./script/setup-sccache.ps1"),