Skip to content

Commit 8ab58d6

Browse files
author
Justin Poehnelt
committed
ci: disable Windows Defender for cargo dirs
1 parent ceacdba commit 8ab58d6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,13 @@ jobs:
183183
sudo apt-get update
184184
sudo apt-get install -y gcc-aarch64-linux-gnu
185185
186+
- name: Disable Windows Defender scanning for cargo
187+
if: runner.os == 'Windows'
188+
run: |
189+
Add-MpPreference -ExclusionPath "$env:USERPROFILE\.cargo"
190+
Add-MpPreference -ExclusionPath "$env:USERPROFILE\.rustup"
191+
Add-MpPreference -ExclusionPath "${{ github.workspace }}\target"
192+
186193
- name: Build
187194
run: cargo build --release --target ${{ matrix.target }}
188195
env:

0 commit comments

Comments
 (0)