Debug
This commit is contained in:
parent
9d49fb8e98
commit
76a91b1af8
|
@ -46,25 +46,6 @@ jobs:
|
||||||
- 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 }}
|
||||||
# - name: Clear tool cache (macOS)
|
|
||||||
# if: runner.os == 'macos'
|
|
||||||
# run: |
|
|
||||||
# echo $PATH
|
|
||||||
# dotnet --info
|
|
||||||
# rm -rf "/Users/runner/.dotnet"
|
|
||||||
# - name: Clear tool cache (Ubuntu)
|
|
||||||
# if: runner.os == 'linux'
|
|
||||||
# run: |
|
|
||||||
# echo $PATH
|
|
||||||
# dotnet --info
|
|
||||||
# rm -rf "/usr/share/dotnet"
|
|
||||||
# - name: Clear tool cache (Windows)
|
|
||||||
# if: runner.os == 'windows'
|
|
||||||
# run: |
|
|
||||||
# echo $env:PATH
|
|
||||||
# dotnet --info
|
|
||||||
# Remove-Item $env:LocalAppData\Microsoft\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: ./
|
||||||
|
@ -85,24 +66,10 @@ jobs:
|
||||||
if: runner.os == 'windows'
|
if: runner.os == 'windows'
|
||||||
run: __tests__/verify-dotnet.ps1 3.1.201 2.2.402
|
run: __tests__/verify-dotnet.ps1 3.1.201 2.2.402
|
||||||
|
|
||||||
# Set new cache before 2 digit install
|
# 2.0, 3.0, 5.0 needs to be in single quotes to interpret as a string instead of as an integer
|
||||||
# - name: Set new tool cache (macOS)
|
|
||||||
# if: runner.os == 'macos'
|
|
||||||
# run: |
|
|
||||||
# echo "DOTNET_INSTALL_DIR=/Users/runner/.dotnet2" >> $GITHUB_ENV
|
|
||||||
# - name: Set new tool cache (Ubuntu)
|
|
||||||
# if: runner.os == 'linux'
|
|
||||||
# run: |
|
|
||||||
# echo "DOTNET_INSTALL_DIR=/home/runner/.dotnet2" >> $GITHUB_ENV
|
|
||||||
# - name: Set new tool cache (Windows)
|
|
||||||
# if: runner.os == 'windows'
|
|
||||||
# shell: bash
|
|
||||||
# run: |
|
|
||||||
# echo "DOTNET_INSTALL_DIR=$LocalAppData\Microsoft\dotnet2" >> $GITHUB_ENV
|
|
||||||
- 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:
|
||||||
|
@ -113,21 +80,8 @@ jobs:
|
||||||
- name: Verify dotnet (Windows)
|
- name: Verify dotnet (Windows)
|
||||||
if: runner.os == 'windows'
|
if: runner.os == 'windows'
|
||||||
run: __tests__/verify-dotnet.ps1 3.1
|
run: __tests__/verify-dotnet.ps1 3.1
|
||||||
|
|
||||||
# Clear cache before .x version install
|
# Dotnet .x version install
|
||||||
# - name: Set new tool cache (macOS)
|
|
||||||
# if: runner.os == 'macos'
|
|
||||||
# run: |
|
|
||||||
# echo "DOTNET_INSTALL_DIR=/Users/runner/.dotnet3" >> $GITHUB_ENV
|
|
||||||
# - name: Set new tool cache (Ubuntu)
|
|
||||||
# if: runner.os == 'linux'
|
|
||||||
# run: |
|
|
||||||
# echo "DOTNET_INSTALL_DIR=/home/runner/.dotnet3" >> $GITHUB_ENV
|
|
||||||
# - name: Set new tool cache (Windows)
|
|
||||||
# if: runner.os == 'windows'
|
|
||||||
# shell: bash
|
|
||||||
# run: |
|
|
||||||
# echo "DOTNET_INSTALL_DIR=$LocalAppData\Microsoft\dotnet3" >> $GITHUB_ENV
|
|
||||||
- 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 }}
|
||||||
|
@ -142,25 +96,21 @@ jobs:
|
||||||
if: runner.os == 'windows'
|
if: runner.os == 'windows'
|
||||||
run: __tests__/verify-dotnet.ps1 3.1
|
run: __tests__/verify-dotnet.ps1 3.1
|
||||||
|
|
||||||
# Clear cache before .* version install
|
# Dotnet .* version install
|
||||||
- name: Set new tool cache (macOS)
|
- name: Clear installed dotnet versions
|
||||||
if: runner.os == 'macos'
|
shell: pwsh
|
||||||
run: |
|
run: __tests__/clear-installed-dotnet.ps1 ${{ runner.os }}
|
||||||
echo "DOTNET_INSTALL_DIR=/Users/runner/.dotnet4" >> $GITHUB_ENV
|
- name: Setup dotnet 5.0.*
|
||||||
- name: Set new tool cache (Ubuntu)
|
|
||||||
if: runner.os == 'linux'
|
|
||||||
run: |
|
|
||||||
echo "DOTNET_INSTALL_DIR=/home/runner/.dotnet4" >> $GITHUB_ENV
|
|
||||||
- name: Set new tool cache (Windows)
|
|
||||||
if: runner.os == 'windows'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "DOTNET_INSTALL_DIR=$LocalAppData\Microsoft\dotnet4" >> $GITHUB_ENV
|
|
||||||
- name: Setup dotnet 2.0.*
|
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
dotnet-version: 2.0.*
|
dotnet-version: 5.0.*
|
||||||
|
- name: Verify dotnet
|
||||||
|
if: runner.os != 'windows'
|
||||||
|
run: __tests__/verify-dotnet.sh 5.0
|
||||||
|
- name: Verify dotnet (Windows)
|
||||||
|
if: runner.os == 'windows'
|
||||||
|
run: __tests__/verify-dotnet.ps1 5.0
|
||||||
|
|
||||||
test-proxy:
|
test-proxy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
|
|
@ -24,8 +24,4 @@ foreach ($path in $pathsToClear) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
Get-Command "dotnet --info"
|
||||||
dotnet --info
|
|
||||||
} catch {
|
|
||||||
Write-Host "Dotnet was removed successfully"
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netcoreapp3.1;netcoreapp2.2</TargetFrameworks>
|
<TargetFrameworks>netcoreapp3.1;netcoreapp2.2;netcoreapp5.0</TargetFrameworks>
|
||||||
<RootNamespace>sample_csproj</RootNamespace>
|
<RootNamespace>sample_csproj</RootNamespace>
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
|
|
Loading…
Reference in New Issue