Fix action.yml

Add missing shell, and merge steps for adding windows defender exclusion

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

View file

@ -18,9 +18,10 @@ inputs:
runs:
using: composite
steps:
- name: Enable macOS developer mode for better performance
run: sudo spctl developer-mode enable-terminal
- name: Enable macOS developer mode for better
if: runner.os == 'macOS'
run: sudo spctl developer-mode enable-terminal
shell: bash
- uses: samypr100/setup-dev-drive@v3
if: runner.os == 'Windows'
@ -31,9 +32,11 @@ runs:
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
- name: Exclude cargo/rustup home from windows defender
- name: Exclude workspace and cargo/rustup home from windows defender
if: runner.os == 'Windows'
run: Add-MpPreference -ExclusionPath $DEV_DRIVE
run: |
Add-MpPreference -ExclusionPath $DEV_DRIVE -ExclusionPath $PWD
shell: bash
- uses: samypr100/setup-dev-drive@v3
if: runner.os == 'Windows'
@ -42,10 +45,6 @@ runs:
drive-size: 3GB
drive-type: Fixed
- name: Exclude target from windows defender
if: runner.os == 'Windows'
run: Add-MpPreference -ExclusionPath $PWD
- name: Add just to tools to install
run: echo "tools=just" >>"$GITHUB_ENV"
shell: bash