mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 07:35:10 +00:00
Use the correct dotnet folder to clean out
This commit is contained in:
parent
9d9ff9f8f4
commit
4e86def5ff
12
.github/workflows/workflow.yml
vendored
12
.github/workflows/workflow.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user