From 87cdb68cca7974a5fb023bd4ade39b7bc3a74bc5 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Thu, 13 Mar 2025 11:39:12 -0400 Subject: [PATCH] ci: Use smaller windows runners (#26674) Let's see if the speed of `windows-2025-32` for `windows_tests` is fast-enough for PRs and everywhere else use `windows-2025-16`. Leaving `windows_clippy` unchanged with `windows-2025-16`. Release Notes: - N/A --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e586ea7a48..bd839a34e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -366,7 +366,8 @@ jobs: if: | github.repository_owner == 'zed-industries' && needs.job_spec.outputs.run_tests == 'true' - runs-on: windows-2025-64 + # Use bigger runners for PRs (speed); smaller for async (cost) + runs-on: ${{ github.event_name == 'pull_request' && 'windows-2025-32' || 'windows-2025-16' }} steps: # more info here:- https://github.com/rust-lang/cargo/issues/13020 - name: Enable longer pathnames for git