From 13b9cca34c292778c78926200861e889fcce20a9 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sun, 25 Aug 2024 20:49:39 +1000 Subject: [PATCH] Setup dev drive for cargo/rust home Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/actions/just-setup/action.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/actions/just-setup/action.yml b/.github/actions/just-setup/action.yml index cbc4bd3d..22c04020 100644 --- a/.github/actions/just-setup/action.yml +++ b/.github/actions/just-setup/action.yml @@ -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