Skip to content

Commit e6cb8f2

Browse files
authored
ci: remove install steps for .NET SDK (#646)
The build environment now contains the .NET SDK, so we don't need to pull it in additionally.
1 parent 352f600 commit e6cb8f2

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,6 @@ jobs:
1717
uses: actions/checkout@v2
1818
with:
1919
fetch-depth: 0
20-
- name: Install .NET Core 2.1 SDK
21-
uses: actions/setup-dotnet@v1
22-
with:
23-
dotnet-version: "2.1.x"
24-
- name: Install .NET Core 3.1 SDK
25-
uses: actions/setup-dotnet@v1
26-
with:
27-
dotnet-version: "3.1.x"
28-
- name: Merge installed .NET SDKs
29-
shell: pwsh
30-
run: |
31-
$version = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Leaf;
32-
$root = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Parent;
33-
$directories = Get-ChildItem $root | Where-Object { $_.Name -ne $version };
34-
foreach ($dir in $directories) {
35-
$from = $dir.FullName;
36-
$to = "$root/$version";
37-
Write-Host Copying from $from to $to;
38-
Copy-Item "$from\*" $to -Recurse -Force;
39-
}
4020
- name: Run tests
4121
run: dotnet test --verbosity normal
4222
pack:

0 commit comments

Comments
 (0)