Commit 389ca7a
ci: optimize Windows CI speed by disabling Defender real-time scanning (#207)
## Summary
Optimizes Windows CI build time by disabling Windows Defender real-time
scanning, matching the optimization applied in
voidzero-dev/vite-plus#716.
### Changes
- **Disable Windows Defender real-time scanning** on Windows runners in
the `test` job
- Added early step using `Set-MpPreference -DisableRealtimeMonitoring
$true`
- Only runs on Windows (`if: runner.os == 'Windows'`)
- Reduces NTFS I/O overhead for cargo builds, test execution, and pnpm
operations
### Before vs After (actual CI results)
| Step | Before (run 547, main) | After (PR #207) | Change |
| --- | --- | --- | --- |
| setup-rust | 56s | 54s | -2s |
| cargo check | 71s | 64s | -7s (~10%) |
| clippy | 28s | 26s | -2s |
| cargo test | 3m42s | 3m28s | -14s (~6%) |
| **Total Windows job** | **~6m57s** | **~6m31s** | **~26s faster
(~6%)** |
### Verification
- [x] CI passes on all platforms (ubuntu, windows, macOS arm64, macOS
x86_64)
- [x] Windows job completes faster than baseline
- [x] No permission issues with Defender disable
https://claude.ai/code/session_01CW1iBNB9Cc9MiNCvnpe5mB
Co-authored-by: Claude <noreply@anthropic.com>1 parent af0900f commit 389ca7a
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
0 commit comments