Exclude target, cargo/rustup home from windows defender

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-08-25 20:54:29 +10:00 committed by GitHub
parent 13b9cca34c
commit e879d8d77e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,11 @@ runs:
env-mapping: |
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
- name: Exclude cargo/rustup home from windows defender
if: runner.os == 'Windows'
run: Add-MpPreference -ExclusionPath $DEV_DRIVE
- uses: samypr100/setup-dev-drive@v3
if: runner.os == 'Windows'
with:
@ -37,6 +42,10 @@ runs:
drive-size: 3GB
drive-type: Fixed
- name: Exclude target from windows defender
if: runner.os == 'Windows'
run: Add-MpPreference -ExclusionPath $DEV_DRIVE
- name: Add just to tools to install
run: echo "tools=just" >>"$GITHUB_ENV"
shell: bash