mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-22 19:41:08 +07:00
Debug
This commit is contained in:
parent
6ade6c061b
commit
c8cf369c29
39
.github/workflows/workflow.yml
vendored
39
.github/workflows/workflow.yml
vendored
@ -46,26 +46,25 @@ jobs:
|
|||||||
- name: Clear toolcache
|
- name: Clear toolcache
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
||||||
|
# - name: Clear tool cache (macOS)
|
||||||
- name: Clear tool cache (macOS)
|
# if: runner.os == 'macos'
|
||||||
if: runner.os == 'macos'
|
# run: |
|
||||||
run: |
|
# echo $PATH
|
||||||
echo $PATH
|
# dotnet --info
|
||||||
dotnet --info
|
# rm -rf "/Users/runner/.dotnet"
|
||||||
rm -rf "/Users/runner/.dotnet"
|
# - name: Clear tool cache (Ubuntu)
|
||||||
- name: Clear tool cache (Ubuntu)
|
# if: runner.os == 'linux'
|
||||||
if: runner.os == 'linux'
|
# run: |
|
||||||
run: |
|
# echo $PATH
|
||||||
echo $PATH
|
# dotnet --info
|
||||||
dotnet --info
|
# rm -rf "/usr/share/dotnet"
|
||||||
rm -rf "/usr/share/dotnet"
|
# - name: Clear tool cache (Windows)
|
||||||
- name: Clear tool cache (Windows)
|
# if: runner.os == 'windows'
|
||||||
if: runner.os == 'windows'
|
# run: |
|
||||||
run: |
|
# echo $env:PATH
|
||||||
echo $env:PATH
|
# dotnet --info
|
||||||
dotnet --info
|
# Remove-Item $env:LocalAppData\Microsoft\dotnet/* -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
Remove-Item $env:LocalAppData\Microsoft\dotnet/* -Recurse -Force -ErrorAction SilentlyContinue
|
# Remove-Item "$env:ProgramFiles\dotnet/*" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
Remove-Item "$env:ProgramFiles\dotnet/*" -Recurse -Force -ErrorAction SilentlyContinue
|
|
||||||
# Side-by-side install of 2.2 and 3.1 used for the test project
|
# Side-by-side install of 2.2 and 3.1 used for the test project
|
||||||
- name: Setup dotnet 2.2.402
|
- name: Setup dotnet 2.2.402
|
||||||
uses: ./
|
uses: ./
|
||||||
|
@ -18,7 +18,7 @@ if ($os -eq "Linux") {
|
|||||||
|
|
||||||
foreach ($path in $pathsToClear) {
|
foreach ($path in $pathsToClear) {
|
||||||
if (Test-Path $path) {
|
if (Test-Path $path) {
|
||||||
Write-Host "Clear $path"
|
Write-Host "Clear $path path"
|
||||||
Remove-Item $path -Recurse -Force
|
Remove-Item $path -Recurse -Force
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user