mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 21:48:42 +00:00
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>
This commit is contained in:
parent
9330730a2a
commit
069afedf19
1 changed files with 11 additions and 0 deletions
11
.github/actions/just-setup/action.yml
vendored
11
.github/actions/just-setup/action.yml
vendored
|
@ -18,6 +18,17 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
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
|
- 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
Reference in a new issue