Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-27T23:28:42.450Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

setup-dev-driver.ps1

40 lines · 1.5 KB · text
1# Configures a drive for testing in CI.
2
3# Currently, total CI requires almost 45GB of space, here we are creating a 100GB drive.
4$Volume = New-VHD -Path C:/zed_dev_drive.vhdx -SizeBytes 100GB |
5                    Mount-VHD -Passthru |
6                    Initialize-Disk -Passthru |
7                    New-Partition -AssignDriveLetter -UseMaximumSize |
8                    Format-Volume -DevDrive -Confirm:$false -Force
9
10$Drive = "$($Volume.DriveLetter):"
11
12# Designate the Dev Drive as trusted
13# See https://learn.microsoft.com/en-us/windows/dev-drive/#how-do-i-designate-a-dev-drive-as-trusted
14fsutil devdrv trust $Drive
15
16# There is no virus on the Dev Drive!
17# Windows Defender is the wolf in antivirus wool, slowing your PC like a digital fool!
18# See https://learn.microsoft.com/en-us/windows/dev-drive/#how-do-i-configure-additional-filters-on-dev-drive
19fsutil devdrv enable /disallowAv
20
21# Remount so the changes take effect
22Dismount-VHD -Path C:/zed_dev_drive.vhdx
23Mount-VHD -Path C:/zed_dev_drive.vhdx
24
25# Show some debug information
26Write-Output $Volume
27Write-Output "Using Dev Drive at $Drive"
28
29# Move Cargo to the dev drive
30New-Item -Path "$($Drive)/.cargo/bin" -ItemType Directory -Force
31Copy-Item -Path "C:/Users/runneradmin/.cargo/*" -Destination "$($Drive)/.cargo/" -Recurse -Force
32
33Write-Output `
34	"DEV_DRIVE=$($Drive)" `
35	"RUSTUP_HOME=$($Drive)/.rustup" `
36	"CARGO_HOME=$($Drive)/.cargo" `
37	"ZED_WORKSPACE=$($Drive)/zed" `
38	"PATH=$($Drive)/.cargo/bin;$env:PATH" `
39	>> $env:GITHUB_ENV
40
Served at tenant.openagents/omega Member data and write actions are omitted.