mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +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,12 +30,21 @@ 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:
|
||||
mount-path: ${{ github.workspace }}/target
|
||||
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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue