Skip to content

Commit d459cd5

Browse files
Alter Windows CI disk limits (#24368)
An attempt to fix https://github.com/zed-industries/zed/actions/runs/13174780143/job/36771552892 Release Notes: - N/A
1 parent 69e6910 commit d459cd5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ jobs:
279279

280280
- name: Check dev drive space
281281
working-directory: ${{ env.ZED_WORKSPACE }}
282-
run: ./script/exit-ci-if-dev-drive-is-full.ps1 55
282+
# `setup-dev-driver.ps1` creates a 100GB drive, with CI taking up ~45GB of the drive.
283+
run: ./script/exit-ci-if-dev-drive-is-full.ps1 95
283284

284285
# Since the Windows runners are stateful, so we need to remove the config file to prevent potential bug.
285286
- name: Clean CI config file

script/setup-dev-driver.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# The current version of the Windows runner is 10.0.20348 which does not support DevDrive option.
44
# Ref: https://learn.microsoft.com/en-us/windows/dev-drive/
55

6-
# Currently, total CI requires almost 45GB of space, here we are creating a 60GB drive.
7-
$Volume = New-VHD -Path C:/zed_dev_drive.vhdx -SizeBytes 60GB |
6+
# Currently, total CI requires almost 45GB of space, here we are creating a 100GB drive.
7+
$Volume = New-VHD -Path C:/zed_dev_drive.vhdx -SizeBytes 100GB |
88
Mount-VHD -Passthru |
99
Initialize-Disk -Passthru |
1010
New-Partition -AssignDriveLetter -UseMaximumSize |
@@ -15,7 +15,7 @@ $Drive = "$($Volume.DriveLetter):"
1515
# Show some debug information
1616
Write-Output $Volume
1717
Write-Output "Using Dev Drive at $Drive"
18-
18+
1919
# Move Cargo to the dev drive
2020
New-Item -Path "$($Drive)/.cargo/bin" -ItemType Directory -Force
2121
Copy-Item -Path "C:/Users/runneradmin/.cargo/*" -Destination "$($Drive)/.cargo/" -Recurse -Force

0 commit comments

Comments
 (0)