Fix adding windows defender exclusion path

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

View file

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