Enable dev drive on windows to speedup CI

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

View file

@ -21,6 +21,16 @@ runs:
- name: Enable macOS developer mode for better performance
run: sudo spctl developer-mode enable-terminal
if: runner.os == 'macOS'
- uses: samypr100/setup-dev-drive@v3
if: runner.os == 'Windows'
with:
workspace-copy: true
drive-size: 6GB
drive-type: Fixed
env-mapping: |
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
- name: Add just to tools to install
run: echo "tools=just" >>"$GITHUB_ENV"
shell: bash