cargo-binstall/.github
Jiahao XU 069afedf19
Speedup ci: Exclude workspace from macOS SIP and windows defenders (#1899)
* Enable macOS dev mode in CI

to speedup CI

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Enable dev drive on windows to speedup CI

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* 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 <30436523+NobodyXu@users.noreply.github.com>

* Setup dev drive for cargo/rust home

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Exclude target, cargo/rustup home from windows defender

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Exclude the entire workspace from

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* 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>

* Fix adding windows defender exclusion path

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix use of Add-MpPreference

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix pwsh

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix creating second dev drive

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix second dev drive setup

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* 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 <30436523+NobodyXu@users.noreply.github.com>

* Disable dev drive for windows as a failed experiment

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-25 12:15:41 +00:00
..
actions/just-setup Speedup ci: Exclude workspace from macOS SIP and windows defenders (#1899) 2024-08-25 12:15:41 +00:00
scripts Fix detect-targets glibc detection (#1421) 2023-09-29 23:46:03 +00:00
workflows build(deps): bump tj-actions/changed-files from 44 to 45 (#1893) 2024-08-22 03:22:31 +00:00
dependabot.yml Fixed and simplify dependabot configuration (#1357) 2023-09-14 21:51:36 +00:00
FUNDING.yml Add GitHub sponsor for maintainer NobodyXu (#1358) 2023-09-14 14:09:19 +00:00