Fix use of Add-MpPreference

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-08-25 21:06:02 +10:00 committed by GitHub
parent 6762dfde40
commit 6da2684e19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ runs:
- name: Exclude workspace and cargo/rustup home from windows defender
if: runner.os == 'Windows'
run: |
Add-MpPreference -ExclusionPath $DEV_DRIVE -ExclusionPath ${{ github.workspace }}
Add-MpPreference -ExclusionPath $DEV_DRIVE,${{ github.workspace }}
shell: pwsh
- uses: samypr100/setup-dev-drive@v3