mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 23:26:36 +00:00
Exclude target, cargo/rustup home from windows defender
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
13b9cca34c
commit
e879d8d77e
1 changed files with 9 additions and 0 deletions
9
.github/actions/just-setup/action.yml
vendored
9
.github/actions/just-setup/action.yml
vendored
|
@ -30,6 +30,11 @@ runs:
|
||||||
env-mapping: |
|
env-mapping: |
|
||||||
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
|
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
|
||||||
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
|
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
|
- uses: samypr100/setup-dev-drive@v3
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
with:
|
with:
|
||||||
|
@ -37,6 +42,10 @@ runs:
|
||||||
drive-size: 3GB
|
drive-size: 3GB
|
||||||
drive-type: Fixed
|
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
|
- name: Add just to tools to install
|
||||||
run: echo "tools=just" >>"$GITHUB_ENV"
|
run: echo "tools=just" >>"$GITHUB_ENV"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue