From 4e86def5ff0ddeaeb6fe050c8b6def618688c944 Mon Sep 17 00:00:00 2001 From: Zachary Eisinger Date: Mon, 10 Aug 2020 09:50:27 -0700 Subject: [PATCH] Use the correct dotnet folder to clean out --- .github/workflows/workflow.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index de79cd5b0..c917579e2 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -35,17 +35,15 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-latest, windows-latest, macOS-latest] - env: - DOTNET_INSTALL_DIR: ${{ runner.temp }} steps: - name: Checkout uses: actions/checkout@v2 - name: Clear tool cache if: runner.os != 'windows' - run: rm -rf $RUNNER_TOOL_CACHE/* + run: rm -rf "$HOME/.dotnet" - name: Clear tool cache (Windows) if: runner.os == 'windows' - run: Remove-Item $RUNNER_TOOL_CACHE/* -Recurse -Force -ErrorAction SilentlyContinue + run: Remove-Item $env:LocalAppData\Microsoft\dotnet/* -Recurse -Force -ErrorAction SilentlyContinue - name: Setup dotnet 3.1.201 uses: ./ with: @@ -69,12 +67,11 @@ jobs: - 3128:3128 env: https_proxy: http://squid-proxy:3128 - DOTNET_INSTALL_DIR: ${{ runner.temp }} steps: - name: Checkout uses: actions/checkout@v2 - name: Clear tool cache - run: rm -rf $RUNNER_TOOL_CACHE/* + run: rm -rf "$HOME/.dotnet" - name: Setup dotnet 3.1.201 uses: ./ with: @@ -87,12 +84,11 @@ jobs: env: https_proxy: http://no-such-proxy:3128 no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net - DOTNET_INSTALL_DIR: ${{ runner.temp }} steps: - name: Checkout uses: actions/checkout@v2 - name: Clear tool cache - run: rm -rf $RUNNER_TOOL_CACHE/* + run: rm -rf "$HOME/.dotnet" - name: Setup dotnet 3.1.201 uses: ./ with: