Skip to content

Commit

Permalink
Upgrade .NET SDK to 6.0.100 (#616)
Browse files Browse the repository at this point in the history
* Update to .NET 6.0.100

* Update Cake to 2.0.0-rc0001
  • Loading branch information
patriksvensson authored Nov 9, 2021
1 parent ba4b7b9 commit 9c9eb04
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 25 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Setup dotnet
- name: Setup dotnet 6.0.100
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
dotnet-version: 6.0.100

- name: Setup Node.js
uses: actions/setup-node@v2
Expand Down Expand Up @@ -85,11 +84,10 @@ jobs:
with:
dotnet-version: 5.0.301

- name: Setup dotnet 6.0
- name: Setup dotnet 6.0.100
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
dotnet-version: 6.0.100

- name: Integration Tests
shell: bash
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ jobs:
with:
fetch-depth: 0

- name: Setup dotnet
- name: Setup dotnet 6.0.100
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
dotnet-version: 6.0.100

- name: Setup Node.js
uses: actions/setup-node@v2
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Setup dotnet
- name: Setup dotnet 6.0.100
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
dotnet-version: 6.0.100

- name: Build
shell: bash
Expand Down Expand Up @@ -73,11 +72,10 @@ jobs:
with:
dotnet-version: 5.0.301

- name: Setup dotnet 6.0
- name: Setup dotnet 6.0.100
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
dotnet-version: 6.0.100

- name: Build
shell: bash
Expand Down
16 changes: 8 additions & 8 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Task("Build")
.IsDependentOn("Clean")
.Does(context =>
{
DotNetCoreBuild("./src/Spectre.Console.sln", new DotNetCoreBuildSettings {
DotNetBuild("./src/Spectre.Console.sln", new DotNetBuildSettings {
Configuration = configuration,
NoIncremental = context.HasArgument("rebuild"),
MSBuildSettings = new DotNetCoreMSBuildSettings()
Expand All @@ -26,7 +26,7 @@ Task("Build-Analyzer")
.IsDependentOn("Build")
.Does(context =>
{
DotNetCoreBuild("./src/Spectre.Console.Analyzer.sln", new DotNetCoreBuildSettings {
DotNetBuild("./src/Spectre.Console.Analyzer.sln", new DotNetBuildSettings {
Configuration = configuration,
NoIncremental = context.HasArgument("rebuild"),
MSBuildSettings = new DotNetCoreMSBuildSettings()
Expand All @@ -38,7 +38,7 @@ Task("Build-Examples")
.IsDependentOn("Build")
.Does(context =>
{
DotNetCoreBuild("./examples/Examples.sln", new DotNetCoreBuildSettings {
DotNetBuild("./examples/Examples.sln", new DotNetBuildSettings {
Configuration = configuration,
NoIncremental = context.HasArgument("rebuild"),
MSBuildSettings = new DotNetCoreMSBuildSettings()
Expand All @@ -52,13 +52,13 @@ Task("Test")
.IsDependentOn("Build-Examples")
.Does(context =>
{
DotNetCoreTest("./test/Spectre.Console.Tests/Spectre.Console.Tests.csproj", new DotNetCoreTestSettings {
DotNetTest("./test/Spectre.Console.Tests/Spectre.Console.Tests.csproj", new DotNetTestSettings {
Configuration = configuration,
NoRestore = true,
NoBuild = true,
});
DotNetCoreTest("./test/Spectre.Console.Analyzer.Tests/Spectre.Console.Analyzer.Tests.csproj", new DotNetCoreTestSettings {
DotNetTest("./test/Spectre.Console.Analyzer.Tests/Spectre.Console.Analyzer.Tests.csproj", new DotNetTestSettings {
Configuration = configuration,
NoRestore = true,
NoBuild = true,
Expand All @@ -69,7 +69,7 @@ Task("Package")
.IsDependentOn("Test")
.Does(context =>
{
context.DotNetCorePack($"./src/Spectre.Console.sln", new DotNetCorePackSettings {
context.DotNetPack($"./src/Spectre.Console.sln", new DotNetPackSettings {
Configuration = configuration,
NoRestore = true,
NoBuild = true,
Expand All @@ -78,7 +78,7 @@ Task("Package")
.TreatAllWarningsAs(MSBuildTreatAllWarningsAs.Error)
});
context.DotNetCorePack($"./src/Spectre.Console.Analyzer.sln", new DotNetCorePackSettings {
context.DotNetPack($"./src/Spectre.Console.Analyzer.sln", new DotNetPackSettings {
Configuration = configuration,
NoRestore = true,
NoBuild = true,
Expand Down Expand Up @@ -134,7 +134,7 @@ Task("Publish-NuGet")
foreach(var file in context.GetFiles("./.artifacts/*.nupkg"))
{
context.Information("Publishing {0}...", file.GetFilename().FullPath);
DotNetCoreNuGetPush(file.FullPath, new DotNetCoreNuGetPushSettings
DotNetNuGetPush(file.FullPath, new DotNetNuGetPushSettings
{
Source = "https://api.nuget.org/v3/index.json",
ApiKey = apiKey,
Expand Down
2 changes: 1 addition & 1 deletion dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "1.1.0",
"version": "2.0.0-rc0001",
"commands": [
"dotnet-cake"
]
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"projects": [ "src", "tests" ],
"sdk": {
"version": "6.0.100-rc.2.21505.57",
"version": "6.0.100",
"rollForward": "latestFeature"
}
}

0 comments on commit 9c9eb04

Please sign in to comment.