Skip to content

Commit aac0b5e

Browse files
authored
remove old workaround for gh action (#508)
* update gh dot net * fix title
1 parent 3772ffb commit aac0b5e

File tree

2 files changed

+6
-31
lines changed

2 files changed

+6
-31
lines changed

.github/workflows/dotnet.yaml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,14 @@ jobs:
1111
- uses: actions/checkout@v1
1212
with:
1313
fetch-depth: 0
14-
- name: Setup dotnet runtime 2.0.9
14+
- name: Setup dotnet SDK 2.1
1515
uses: actions/setup-dotnet@v1
1616
with:
17-
dotnet-version: 2.1.202
18-
- name: Setup dotnet runtime 2.1.17
19-
uses: actions/setup-dotnet@v1
20-
with:
21-
dotnet-version: 2.1.805
17+
dotnet-version: '2.1.x'
2218
- name: Setup dotnet SDK 3.1
2319
uses: actions/setup-dotnet@v1
2420
with:
25-
dotnet-version: 3.1.201
26-
- name: Setup SxS dotnet
27-
if: matrix.os == 'windows-latest'
28-
run: |
29-
(robocopy %DOTNET_ROOT:3.1.201=2.1.805% %DOTNET_ROOT% /E /XC /XN /XO /NFL /NDL /NJH /NJS /NP) ^& if %ERRORLEVEL% geq 8 exit /B %ERRORLEVEL%
30-
(robocopy %DOTNET_ROOT:3.1.201=2.1.202% %DOTNET_ROOT% /E /XC /XN /XO /NFL /NDL /NJH /NJS /NP) ^& if %ERRORLEVEL% geq 8 exit /B %ERRORLEVEL%
31-
exit /B 0
32-
shell: cmd
33-
- name: Setup SxS dotnet
34-
if: matrix.os != 'windows-latest'
35-
run: |
36-
rsync --archive --ignore-existing ${DOTNET_ROOT/3.1.201/2.1.805}/ ${DOTNET_ROOT/3.1.201/2.1.202}/ $DOTNET_ROOT
21+
dotnet-version: '3.1.x'
3722
- name: Setup Format
3823
run: dotnet tool install -g dotnet-format
3924
- name: Check Format

.github/workflows/nuget.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,14 @@ jobs:
1313
- uses: actions/checkout@v1
1414
with:
1515
fetch-depth: 0
16-
- name: Setup dotnet runtime 2.0.9
16+
- name: Setup dotnet SDK 2.1
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: 2.1.202
20-
- name: Setup dotnet runtime 2.1.17
21-
uses: actions/setup-dotnet@v1
22-
with:
23-
dotnet-version: 2.1.805
19+
dotnet-version: '2.1.x'
2420
- name: Setup dotnet SDK 3.1
2521
uses: actions/setup-dotnet@v1
2622
with:
27-
dotnet-version: 3.1.201
28-
- name: Setup SxS dotnet
29-
run: |
30-
(robocopy %DOTNET_ROOT:3.1.201=2.1.805% %DOTNET_ROOT% /E /XC /XN /XO /NFL /NDL /NJH /NJS /NP) ^& if %ERRORLEVEL% geq 8 exit /B %ERRORLEVEL%
31-
(robocopy %DOTNET_ROOT:3.1.201=2.1.202% %DOTNET_ROOT% /E /XC /XN /XO /NFL /NDL /NJH /NJS /NP) ^& if %ERRORLEVEL% geq 8 exit /B %ERRORLEVEL%
32-
exit /B 0
33-
shell: cmd
23+
dotnet-version: '3.1.x'
3424
- name: Test
3525
run: dotnet test
3626
- name: Pack

0 commit comments

Comments
 (0)