Skip to content

Commit

Permalink
Speedup ci: Exclude workspace from macOS SIP and windows defenders (#…
Browse files Browse the repository at this point in the history
…1899)

* Enable macOS dev mode in CI

to speedup CI

Signed-off-by: Jiahao XU <[email protected]>

* Enable dev drive on windows to speedup CI

Signed-off-by: Jiahao XU <[email protected]>

* Use dev drive for target

which is the most write-heavy part.

The read to the workspace can be cached as it is really small

Signed-off-by: Jiahao XU <[email protected]>

* Setup dev drive for cargo/rust home

Signed-off-by: Jiahao XU <[email protected]>

* Exclude target, cargo/rustup home from windows defender

Signed-off-by: Jiahao XU <[email protected]>

* Exclude the entire workspace from

Signed-off-by: Jiahao XU <[email protected]>

* Fix action.yml

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

Signed-off-by: Jiahao XU <[email protected]>

* Fix adding windows defender exclusion path

Signed-off-by: Jiahao XU <[email protected]>

* Fix use of Add-MpPreference

Signed-off-by: Jiahao XU <[email protected]>

* Fix pwsh

Signed-off-by: Jiahao XU <[email protected]>

* Fix creating second dev drive

Signed-off-by: Jiahao XU <[email protected]>

* Fix second dev drive setup

Signed-off-by: Jiahao XU <[email protected]>

* Fix caching: Do not mount dev drive at target

Since it contains files that are not accessible.

Also remove use of dev drive for cargo/rustup home since it prevents caching (rust-cache does not read from env).

Signed-off-by: Jiahao XU <[email protected]>

* Disable dev drive for windows as a failed experiment

Signed-off-by: Jiahao XU <[email protected]>

---------

Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu authored Aug 25, 2024
1 parent 9330730 commit 069afed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/just-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ inputs:
runs:
using: composite
steps:
- name: Enable macOS developer mode for better
if: runner.os == 'macOS'
run: sudo spctl developer-mode enable-terminal
shell: bash

- name: Exclude workspace and cargo/rustup home from windows defender
if: runner.os == 'Windows'
run: |
Add-MpPreference -ExclusionPath '${{ github.workspace }}'
shell: pwsh

- name: Add just to tools to install
run: echo "tools=just" >>"$GITHUB_ENV"
shell: bash
Expand Down

0 comments on commit 069afed

Please sign in to comment.