Skip to content

Commit 2a61e3a

Browse files
WebKit ARM64 Builderclaude
andcommitted
Disable Windows Defender entirely in CI runners
Windows Defender is a waste of time and resources on CI runners. Disable it completely at the start of the workflow to prevent file locking issues and speed up builds. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 8a8408b commit 2a61e3a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,18 @@ jobs:
254254
runs-on: ${{ matrix.runner }}
255255
timeout-minutes: 90
256256
steps:
257+
- name: Disable Windows Defender
258+
run: |
259+
Set-MpPreference -DisableRealtimeMonitoring $true -ErrorAction SilentlyContinue
260+
Set-MpPreference -DisableBehaviorMonitoring $true -ErrorAction SilentlyContinue
261+
Set-MpPreference -DisableBlockAtFirstSeen $true -ErrorAction SilentlyContinue
262+
Set-MpPreference -DisableIOAVProtection $true -ErrorAction SilentlyContinue
263+
Set-MpPreference -DisablePrivacyMode $true -ErrorAction SilentlyContinue
264+
Set-MpPreference -DisableScriptScanning $true -ErrorAction SilentlyContinue
265+
Set-MpPreference -DisableArchiveScanning $true -ErrorAction SilentlyContinue
266+
Set-MpPreference -SignatureDisableUpdateOnStartupWithoutEngine $true -ErrorAction SilentlyContinue
267+
Set-MpPreference -DisableIntrusionPreventionSystem $true -ErrorAction SilentlyContinue
268+
257269
- name: Install dependencies for Windows
258270
run: |
259271
# Detect architecture

0 commit comments

Comments
 (0)