Skip to content

Commit 5995a45

Browse files
Boshenclaude
andauthored
ci: use Dev Drive to speed up Windows builds (#249)
## Summary - Replace the `Disable Windows Defender` workaround with `samypr100/setup-dev-drive@v4`, which creates a ReFS Dev Drive and places `CARGO_HOME` and `RUSTUP_HOME` on it - ReFS Dev Drives are optimized for developer workloads and should provide ~25%+ improvement for I/O-heavy Rust compilation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d57119f commit 5995a45

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,14 @@ jobs:
6262
persist-credentials: false
6363
submodules: true
6464

65-
# Disable Windows Defender real-time scanning to speed up I/O-heavy builds (~30-50% faster)
66-
- name: Disable Windows Defender
65+
- name: Setup Dev Drive
66+
uses: samypr100/setup-dev-drive@30f0f98ae5636b2b6501e181dfb3631b9974818d # v4.0.0
6767
if: runner.os == 'Windows'
68-
shell: powershell
69-
run: Set-MpPreference -DisableRealtimeMonitoring $true
68+
with:
69+
drive-size: 10GB
70+
env-mapping: |
71+
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
72+
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
7073
7174
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
7275
with:

0 commit comments

Comments
 (0)