Skip to content

Commit f683086

Browse files
committed
ci: disable Windows Defender real-time scanning for faster CI
Disable Windows Defender real-time monitoring on Windows CI runners to reduce I/O overhead during cargo builds and test execution. This matches the optimization applied in voidzero-dev/vite-plus#716 and is expected to improve Windows CI speed by ~30-50% on I/O-heavy steps. https://claude.ai/code/session_01CW1iBNB9Cc9MiNCvnpe5mB
1 parent af0900f commit f683086

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
persist-credentials: false
4747
submodules: true
4848

49+
# Disable Windows Defender real-time scanning to speed up I/O-heavy builds (~30-50% faster)
50+
- name: Disable Windows Defender
51+
if: runner.os == 'Windows'
52+
shell: powershell
53+
run: Set-MpPreference -DisableRealtimeMonitoring $true
54+
4955
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
5056
with:
5157
save-cache: ${{ github.ref_name == 'main' }}

0 commit comments

Comments
 (0)