From f683086db0b8aaad91b9572430924bbebcecca8c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Mar 2026 02:03:55 +0000 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb194f29..86982517 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,12 @@ jobs: persist-credentials: false submodules: true + # Disable Windows Defender real-time scanning to speed up I/O-heavy builds (~30-50% faster) + - name: Disable Windows Defender + if: runner.os == 'Windows' + shell: powershell + run: Set-MpPreference -DisableRealtimeMonitoring $true + - uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0 with: save-cache: ${{ github.ref_name == 'main' }}