-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from nils-a/release/3.1.0
Release/3.1.0
- Loading branch information
Showing
23 changed files
with
221 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,19 +23,36 @@ jobs: | |
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v2.4.0 | ||
|
||
- name: Fetch all tags and branches | ||
run: git fetch --prune --unshallow | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
# codecov and unittests need 2.1 | ||
dotnet-version: '2.1.818' | ||
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: '3.1.414' | ||
- uses: actions/[email protected] | ||
with: | ||
# gitversion needs 5.0 | ||
dotnet-version: '5.0.402' | ||
- uses: actions/[email protected] | ||
with: | ||
# need at least .NET 6 rc2 to build | ||
dotnet-version: '6.0.100-rc.2.21505.57' | ||
include-prerelease: true | ||
|
||
- name: Cache Tools | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v2.1.6 | ||
with: | ||
path: tools | ||
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} | ||
|
||
- name: Build project | ||
uses: cake-build/cake-action@v1 | ||
uses: cake-build/cake-action@v1.4.0 | ||
with: | ||
script-path: recipe.cake | ||
target: CI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,29 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v2.4.0 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
# codecov and unittests need 2.1 | ||
dotnet-version: '2.1.818' | ||
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: '3.1.414' | ||
- uses: actions/[email protected] | ||
with: | ||
# gitversion needs 5.0 | ||
dotnet-version: '5.0.402' | ||
- uses: actions/[email protected] | ||
with: | ||
# need at least .NET 6 rc2 to build | ||
dotnet-version: '6.0.100-rc.2.21505.57' | ||
include-prerelease: true | ||
|
||
- name: Cache Tools | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v2.1.6 | ||
with: | ||
path: tools | ||
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} | ||
|
@@ -36,7 +53,7 @@ jobs: | |
languages: ${{ matrix.language }} | ||
|
||
- name: Build project | ||
uses: cake-build/cake-action@v1 | ||
uses: cake-build/cake-action@v1.4.0 | ||
with: | ||
script-path: recipe.cake | ||
target: DotNetCore-Build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"cSpell.words": [ | ||
"Buildsystems", | ||
"nuget" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"cake.tool": { | ||
"version": "1.1.0", | ||
"commands": [ | ||
"dotnet-cake" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#module nuget:?package=Cake.BuildSystems.Module&version=3.0.3 | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
// ARGUMENTS | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
var target = Argument("target", "Default"); | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// TASKS | ||
/////////////////////////////////////////////////////////////////////////////// | ||
Task("Default") | ||
.Does(() => { | ||
Information("Hello Cake!"); | ||
Verbose("This is really verbose."); | ||
Warning("This is a warning."); | ||
Debug("This is a debug-message."); | ||
Information("Next comes the error:"); | ||
Error("This is an error."); | ||
}); | ||
|
||
RunTarget(target); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$ErrorActionPreference = 'Stop' | ||
|
||
Set-Location -LiteralPath $PSScriptRoot | ||
|
||
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1' | ||
$env:DOTNET_CLI_TELEMETRY_OPTOUT = '1' | ||
$env:DOTNET_NOLOGO = '1' | ||
|
||
dotnet tool restore | ||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | ||
|
||
dotnet cake @args | ||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -euox pipefail | ||
|
||
cd "$(dirname "${BASH_SOURCE[0]}")" | ||
|
||
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 | ||
export DOTNET_CLI_TELEMETRY_OPTOUT=1 | ||
export DOTNET_NOLOGO=1 | ||
|
||
dotnet tool restore | ||
|
||
dotnet cake "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dotnet run --project build/Build.csproj -- $args | ||
exit $LASTEXITCODE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dotnet run --project ./build/Build.csproj -- "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Cake.BuildSystems.Module" Version="3.0.3" /> | ||
<PackageReference Include="Cake.Frosting" Version="1.1.0" /> | ||
<PackageReference Include="JetBrains.Annotations" Version="2021.1.0" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using Cake.AzurePipelines.Module; | ||
using Cake.Common.Diagnostics; | ||
using Cake.Core; | ||
using Cake.Frosting; | ||
using Cake.MyGet.Module; | ||
using Cake.TeamCity.Module; | ||
using Cake.TravisCI.Module; | ||
using JetBrains.Annotations; | ||
|
||
public static class Program | ||
{ | ||
public static int Main(string[] args) | ||
{ | ||
return new CakeHost() | ||
// Register all modules from Cake.Buildsystems.Module | ||
.UseModule<AzurePipelinesModule>() | ||
.UseModule<MyGetModule>() | ||
.UseModule<TravisCIModule>() | ||
.UseModule<TeamCityModule>() | ||
.UseContext<BuildContext>() | ||
.Run(args); | ||
} | ||
} | ||
|
||
public class BuildContext : FrostingContext | ||
{ | ||
public BuildContext(ICakeContext context) | ||
: base(context) | ||
{ | ||
} | ||
} | ||
|
||
[TaskName("Default")] | ||
[UsedImplicitly] | ||
public class DefaultTask : FrostingTask | ||
{ | ||
public override void Run(ICakeContext context) | ||
{ | ||
context.Information("Hello Cake!"); | ||
context.Verbose("This is really verbose."); | ||
context.Warning("This is a warning."); | ||
context.Debug("This is a debug-message."); | ||
context.Information("Next comes the error:"); | ||
context.Error("This is an error."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"allowPrerelease": true, | ||
"version": "6.0.100-rc.2", | ||
"rollForward": "latestFeature" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.