ci: disable Windows Defender for cargo dirs

This commit is contained in:
Justin Poehnelt
2026-03-03 10:10:40 -07:00
parent ceacdbae09
commit 8ab58d670f
+7
View File
@@ -183,6 +183,13 @@ jobs:
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Disable Windows Defender scanning for cargo
if: runner.os == 'Windows'
run: |
Add-MpPreference -ExclusionPath "$env:USERPROFILE\.cargo"
Add-MpPreference -ExclusionPath "$env:USERPROFILE\.rustup"
Add-MpPreference -ExclusionPath "${{ github.workspace }}\target"
- name: Build
run: cargo build --release --target ${{ matrix.target }}
env: