From 8fcaf36eaf377d041c8116946ff212e214f4fbf1 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sun, 25 Aug 2024 20:40:21 +1000 Subject: [PATCH] Enable dev drive on windows to speedup CI Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/actions/just-setup/action.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/actions/just-setup/action.yml b/.github/actions/just-setup/action.yml index 18b95f73..bc718576 100644 --- a/.github/actions/just-setup/action.yml +++ b/.github/actions/just-setup/action.yml @@ -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