ricaun.Nuke
1.8.1
Prefix Reserved
dotnet add package ricaun.Nuke --version 1.8.1
NuGet\Install-Package ricaun.Nuke -Version 1.8.1
<PackageReference Include="ricaun.Nuke" Version="1.8.1" />
paket add ricaun.Nuke --version 1.8.1
#r "nuget: ricaun.Nuke, 1.8.1"
// Install ricaun.Nuke as a Cake Addin #addin nuget:?package=ricaun.Nuke&version=1.8.1 // Install ricaun.Nuke as a Cake Tool #tool nuget:?package=ricaun.Nuke&version=1.8.1
ricaun.Nuke
This package is to simplify the build automation system using Nuke.Common.
Examples
Build.cs - IPublish
using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;
class Build : NukeBuild, IPublish
{
// string IHazMainProject.MainName => "ProjectName";
public static int Main() => Execute<Build>(x => x.From<IPublish>().Build);
}
Environment Variables
env:
GitHubToken: ${{ secrets.GITHUB_TOKEN }}
SignFile: ${{ secrets.SIGN_FILE }}
SignPassword: ${{ secrets.SIGN_PASSWORD }}
Build.cs - IPublishPack
using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;
class Build : NukeBuild, IPublishPack
{
// string IHazMainProject.MainName => "ProjectName";
public static int Main() => Execute<Build>(x => x.From<IPublishPack>().Build);
}
Environment Variables
Publish Package Github
env:
GitHubToken: ${{ secrets.GITHUB_TOKEN }}
SignFile: ${{ secrets.SIGN_FILE }}
SignPassword: ${{ secrets.SIGN_PASSWORD }}
Publish Package Nuget
env:
GitHubToken: ${{ secrets.GITHUB_TOKEN }}
SignFile: ${{ secrets.SIGN_FILE }}
SignPassword: ${{ secrets.SIGN_PASSWORD }}
NugetApiUrl: ${{ secrets.NUGET_API_URL }}
NugetApiKey: ${{ secrets.NUGET_API_KEY }}
Build.cs - ITest
ITest
runs all the TestLocalProjectName
tests on local build and server build.
using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;
class Build : NukeBuild, IPublish, ITest
{
// bool ITest.TestBuildStopWhenFailed => true;
// string ITest.TestProjectName => "*.Tests";
public static int Main() => Execute<Build>(x => x.From<IPublish>().Build);
}
Build.cs - ITestLocal
ITestLocal
runs all the TestLocalProjectName
tests only on local build.
using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;
class Build : NukeBuild, IPublish, ITestLocal
{
// bool ITestLocal.TestLocalBuildStopWhenFailed => true;
// string ITestLocal.TestLocalProjectName => "*.Tests";
public static int Main() => Execute<Build>(x => x.From<IPublish>().Build);
}
Build.cs - ITestServer
ITestServer
runs all the TestServerProjectName
tests only on server build.
using Nuke.Common;
using Nuke.Common.Execution;
using ricaun.Nuke;
using ricaun.Nuke.Components;
class Build : NukeBuild, IPublish, ITestServer
{
// bool ITestServer.TestServerBuildStopWhenFailed => true;
// string ITestServer.TestServerProjectName => "*.Tests";
public static int Main() => Execute<Build>(x => x.From<IPublish>().Build);
}
License
This package is licensed under the MIT Licence.
Do you like this package? Please star this project on GitHub!
Copyright © 2021 ricaun
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- GitVersion.CommandLine (>= 5.12.0)
- NuGet.CommandLine (>= 6.9.1)
- Nuke.Common (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ricaun.Nuke:
Package | Downloads |
---|---|
ricaun.Nuke.PackageBuilder
Nuke PackageBuilder for Autodesk Application. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.8.1 | 1,281 | 5/15/2024 |
1.8.0 | 1,015 | 4/1/2024 |
1.7.4 | 262 | 3/11/2024 |
1.7.3 | 971 | 12/22/2023 |
1.7.2 | 680 | 11/19/2023 |
1.7.1 | 423 | 10/6/2023 |
1.7.0 | 191 | 10/4/2023 |
1.6.1 | 148 | 10/2/2023 |
1.6.0 | 135 | 10/2/2023 |
1.5.2 | 128 | 10/2/2023 |
1.5.1 | 620 | 7/24/2023 |
1.5.0 | 524 | 5/31/2023 |
1.4.4 | 665 | 3/30/2023 |
1.4.3 | 745 | 1/24/2023 |
1.4.2 | 327 | 12/21/2022 |
1.4.1 | 309 | 12/15/2022 |
1.4.0 | 935 | 10/9/2022 |
1.3.6 | 484 | 8/18/2022 |
1.3.5 | 846 | 8/13/2022 |
1.3.4 | 775 | 7/19/2022 |
1.3.3 | 604 | 7/18/2022 |
1.3.2 | 469 | 7/18/2022 |
1.3.1 | 853 | 6/15/2022 |
1.3.0 | 707 | 6/15/2022 |
1.2.2 | 1,516 | 4/22/2022 |
1.2.1 | 1,179 | 4/6/2022 |
1.2.0 | 765 | 4/4/2022 |
1.1.3 | 1,689 | 3/11/2022 |
1.1.2 | 1,266 | 2/23/2022 |
1.1.1 | 811 | 2/23/2022 |
1.1.0 | 851 | 2/15/2022 |
1.0.2 | 659 | 1/19/2022 |
1.0.1 | 827 | 1/19/2022 |
1.0.0 | 851 | 1/19/2022 |
0.0.16 | 722 | 1/11/2022 |
0.0.15 | 475 | 1/11/2022 |
0.0.14 | 430 | 1/4/2022 |
0.0.13 | 658 | 12/21/2021 |
0.0.12 | 465 | 12/21/2021 |
0.0.11 | 513 | 12/17/2021 |
0.0.10 | 502 | 12/17/2021 |
0.0.9 | 390 | 12/17/2021 |
0.0.8 | 432 | 12/17/2021 |
0.0.7 | 779 | 12/9/2021 |
0.0.6 | 499 | 12/9/2021 |
0.0.5 | 498 | 12/8/2021 |