From 16fe3e3aa4a6e5c52f9330c01557b066f5e13ee7 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sun, 25 Aug 2024 21:48:18 +1000 Subject: [PATCH] Disable dev drive for windows as a failed experiment Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/actions/just-setup/action.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/actions/just-setup/action.yml b/.github/actions/just-setup/action.yml index 78e908bf..17572609 100644 --- a/.github/actions/just-setup/action.yml +++ b/.github/actions/just-setup/action.yml @@ -22,25 +22,11 @@ runs: if: runner.os == 'macOS' run: sudo spctl developer-mode enable-terminal shell: bash - - - name: Export CARGO_TARGET_DIR - if: runner.os != 'Windows' - run: | - echo "CARGO_TARGET_DIR=${{ github.workspace }}/target" >> "$GITHUB_ENV" - shell: bash - - - uses: samypr100/setup-dev-drive@v3 - if: runner.os == 'Windows' - with: - drive-type: Fixed - drive-size: 3GB - env-mapping: | - CARGO_TARGET_DIR,{{ DEV_DRIVE }}/target - name: Exclude workspace and cargo/rustup home from windows defender if: runner.os == 'Windows' run: | - Add-MpPreference -ExclusionPath '${{ env.DEV_DRIVE }},${{ github.workspace }}' + Add-MpPreference -ExclusionPath '${{ github.workspace }}' shell: pwsh - name: Add just to tools to install @@ -85,7 +71,6 @@ runs: uses: Swatinem/rust-cache@v2 with: env-vars: "CARGO CC CFLAGS CXX CMAKE RUST JUST" - workspaces: . -> ${{ env.CARGO_TARGET_DIR }} env: RUSTFLAGS: ${{ steps.retrieve-rustflags.outputs.RUSTFLAGS }}