mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-23 03:51:07 +07:00
Debug
This commit is contained in:
parent
10ad86dc12
commit
9d49fb8e98
41
.github/workflows/workflow.yml
vendored
41
.github/workflows/workflow.yml
vendored
@ -99,10 +99,10 @@ jobs:
|
|||||||
# shell: bash
|
# shell: bash
|
||||||
# run: |
|
# run: |
|
||||||
# echo "DOTNET_INSTALL_DIR=$LocalAppData\Microsoft\dotnet2" >> $GITHUB_ENV
|
# echo "DOTNET_INSTALL_DIR=$LocalAppData\Microsoft\dotnet2" >> $GITHUB_ENV
|
||||||
# 2.0, 3.0, 5.0 needs to be in single quotes to interpret as a string instead of as an integer
|
|
||||||
- name: Clear installed dotnet versions
|
- name: Clear installed dotnet versions
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: __tests__/clear-installed-dotnet.ps1 ${{ runner.os }}
|
run: __tests__/clear-installed-dotnet.ps1 ${{ runner.os }}
|
||||||
|
# 2.0, 3.0, 5.0 needs to be in single quotes to interpret as a string instead of as an integer
|
||||||
- name: Setup dotnet '3.1'
|
- name: Setup dotnet '3.1'
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
@ -115,23 +115,32 @@ jobs:
|
|||||||
run: __tests__/verify-dotnet.ps1 3.1
|
run: __tests__/verify-dotnet.ps1 3.1
|
||||||
|
|
||||||
# Clear cache before .x version install
|
# Clear cache before .x version install
|
||||||
- name: Set new tool cache (macOS)
|
# - name: Set new tool cache (macOS)
|
||||||
if: runner.os == 'macos'
|
# if: runner.os == 'macos'
|
||||||
run: |
|
# run: |
|
||||||
echo "DOTNET_INSTALL_DIR=/Users/runner/.dotnet3" >> $GITHUB_ENV
|
# echo "DOTNET_INSTALL_DIR=/Users/runner/.dotnet3" >> $GITHUB_ENV
|
||||||
- name: Set new tool cache (Ubuntu)
|
# - name: Set new tool cache (Ubuntu)
|
||||||
if: runner.os == 'linux'
|
# if: runner.os == 'linux'
|
||||||
run: |
|
# run: |
|
||||||
echo "DOTNET_INSTALL_DIR=/home/runner/.dotnet3" >> $GITHUB_ENV
|
# echo "DOTNET_INSTALL_DIR=/home/runner/.dotnet3" >> $GITHUB_ENV
|
||||||
- name: Set new tool cache (Windows)
|
# - name: Set new tool cache (Windows)
|
||||||
if: runner.os == 'windows'
|
# if: runner.os == 'windows'
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
echo "DOTNET_INSTALL_DIR=$LocalAppData\Microsoft\dotnet3" >> $GITHUB_ENV
|
# echo "DOTNET_INSTALL_DIR=$LocalAppData\Microsoft\dotnet3" >> $GITHUB_ENV
|
||||||
- name: Setup dotnet 2.0.x
|
- name: Clear installed dotnet versions
|
||||||
|
shell: pwsh
|
||||||
|
run: __tests__/clear-installed-dotnet.ps1 ${{ runner.os }}
|
||||||
|
- name: Setup dotnet 3.1.x
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
dotnet-version: 2.0.x
|
dotnet-version: 3.1.x
|
||||||
|
- name: Verify dotnet
|
||||||
|
if: runner.os != 'windows'
|
||||||
|
run: __tests__/verify-dotnet.sh 3.1
|
||||||
|
- name: Verify dotnet (Windows)
|
||||||
|
if: runner.os == 'windows'
|
||||||
|
run: __tests__/verify-dotnet.ps1 3.1
|
||||||
|
|
||||||
# Clear cache before .* version install
|
# Clear cache before .* version install
|
||||||
- name: Set new tool cache (macOS)
|
- name: Set new tool cache (macOS)
|
||||||
|
@ -24,4 +24,8 @@ foreach ($path in $pathsToClear) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
dotnet --info
|
dotnet --info
|
||||||
|
} catch {
|
||||||
|
Write-Host "Dotnet was removed successfully"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user