Skip to content

Instantly share code, notes, and snippets.

@berkus
Last active March 20, 2026 11:25
Show Gist options
  • Select an option

  • Save berkus/860285a2ee184022b57e2916ea3400c3 to your computer and use it in GitHub Desktop.

Select an option

Save berkus/860285a2ee184022b57e2916ea3400c3 to your computer and use it in GitHub Desktop.
Disable windows defender to speed up builds
- name: Disable Windows Defender on build dirs
if: runner.os == 'Windows'
run: |
Add-MpPreference -ExclusionPath "$env:GITHUB_WORKSPACE"
Add-MpPreference -ExclusionPath "$env:USERPROFILE\.cargo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment