Setup dev drive for cargo/rust home

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-08-25 20:49:39 +10:00 committed by GitHub
parent e55c4282cb
commit 13b9cca34c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,11 +21,20 @@ 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:
drive-type: Fixed
drive-size: 2GB
env-mapping: |
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
- uses: samypr100/setup-dev-drive@v3
if: runner.os == 'Windows'
with:
mount-path: ${{ github.workspace }}/target
drive-size: 5GB
drive-size: 3GB
drive-type: Fixed
- name: Add just to tools to install