Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
313 changes: 219 additions & 94 deletions Build/.nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,238 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/build",
"title": "Build Schema",
"definitions": {
"build": {
"Host": {
"type": "string",
"enum": [
"AppVeyor",
"AzurePipelines",
"Bamboo",
"Bitbucket",
"Bitrise",
"GitHubActions",
"GitLab",
"Jenkins",
"Rider",
"SpaceAutomation",
"TeamCity",
"Terminal",
"TravisCI",
"VisualStudio",
"VSCode"
]
},
"IssConfiguration": {
"type": "object",
"description": "IssConfiguration",
"properties": {
"ApplicationType": {
"type": "string"
"Title": {
"type": [
"null",
"string"
],
"description": "Title (default null)"
},
"Image": {
"type": [
"null",
"string"
],
"description": "Image (default IMAGE)"
},
"ImageSmall": {
"type": [
"null",
"string"
],
"description": "Small Image (default IMAGESMALL)"
},
"Icon": {
"type": [
"null",
"string"
],
"description": "Icon (default ICON)"
},
"Licence": {
"type": [
"null",
"string"
],
"description": "Licence (default LICENSE)"
},
"Language": {
"description": "Language (default IssLanguage)",
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/IssLanguage"
}
]
},
"IssLanguageLicences": {
"type": [
"array",
"null"
],
"description": "IssLanguages",
"items": {
"$ref": "#/definitions/IssLanguageLicence"
}
}
}
},
"IssLanguage": {
"type": "object",
"description": "IssLanguage",
"properties": {
"Name": {
"type": [
"null",
"string"
],
"description": "Name (default \"en\")"
},
"MessagesFile": {
"type": [
"null",
"string"
],
"description": "MessagesFile (default \"compiler:Default.isl\")"
}
}
},
"IssLanguageLicence": {
"type": "object",
"description": "IssLanguageLicence",
"properties": {
"Name": {
"type": [
"null",
"string"
],
"description": "Name (default \"en\")"
},
"MessagesFile": {
"type": [
"null",
"string"
],
"description": "MessagesFile (default \"compiler:Default.isl\")"
},
"Licence": {
"type": [
"null",
"string"
],
"description": "Licence (default LICENSE)"
}
}
},
"ExecutableTarget": {
"type": "string",
"enum": [
"Build",
"Clean",
"Compile",
"GitPreRelease",
"GitRelease",
"PackageBuilder",
"Release",
"Sign",
"Test"
]
},
"Verbosity": {
"type": "string",
"description": "",
"enum": [
"Verbose",
"Normal",
"Minimal",
"Quiet"
]
},
"NukeBuild": {
"properties": {
"Continue": {
"type": "boolean",
"description": "Indicates to continue a previously failed build attempt"
},
"Folder": {
"type": "string"
},
"GitHubToken": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"Help": {
"type": "boolean",
"description": "Shows the help text for this build assembly"
},
"Host": {
"type": "string",
"description": "Host for execution. Default is 'automatic'",
"enum": [
"AppVeyor",
"AzurePipelines",
"Bamboo",
"Bitbucket",
"Bitrise",
"GitHubActions",
"GitLab",
"Jenkins",
"Rider",
"SpaceAutomation",
"TeamCity",
"Terminal",
"TravisCI",
"VisualStudio",
"VSCode"
]
"$ref": "#/definitions/Host"
},
"NoLogo": {
"type": "boolean",
"description": "Disables displaying the NUKE logo"
},
"Partition": {
"type": "string",
"description": "Partition to use on CI"
},
"Plan": {
"type": "boolean",
"description": "Shows the execution plan (HTML)"
},
"Profile": {
"type": "array",
"description": "Defines the profiles to load",
"items": {
"type": "string"
}
},
"Root": {
"type": "string",
"description": "Root directory during build execution"
},
"Skip": {
"type": "array",
"description": "List of targets to be skipped. Empty list skips all dependencies",
"items": {
"$ref": "#/definitions/ExecutableTarget"
}
},
"Target": {
"type": "array",
"description": "List of targets to be invoked. Default is '{default_target}'",
"items": {
"$ref": "#/definitions/ExecutableTarget"
}
},
"Verbosity": {
"description": "Logging verbosity during build execution. Default is 'Normal'",
"$ref": "#/definitions/Verbosity"
}
}
}
},
"allOf": [
{
"properties": {
"ApplicationType": {
"type": "string"
},
"EnableForkedRepository": {
"type": "boolean"
},
"Folder": {
"type": "string"
},
"GitHubToken": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"InstallationFiles": {
"type": "string"
},
"IssConfiguration": {
"type": "string"
"$ref": "#/definitions/IssConfiguration"
},
"MainName": {
"type": "string"
Expand All @@ -63,21 +246,8 @@
"NewVersions": {
"type": "boolean"
},
"NoLogo": {
"type": "boolean",
"description": "Disables displaying the NUKE logo"
},
"Partition": {
"type": "string",
"description": "Partition to use on CI"
},
"Plan": {
"type": "boolean",
"description": "Shows the execution plan (HTML)"
},
"Profile": {
"PreReleaseFilter": {
"type": "array",
"description": "Defines the profiles to load",
"items": {
"type": "string"
}
Expand All @@ -103,10 +273,6 @@
"ReleasePackageBuilder": {
"type": "boolean"
},
"Root": {
"type": "string",
"description": "Root directory during build execution"
},
"SignFile": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
Expand All @@ -115,44 +281,10 @@
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"Skip": {
"type": "array",
"description": "List of targets to be skipped. Empty list skips all dependencies",
"items": {
"type": "string",
"enum": [
"Build",
"Clean",
"Compile",
"GitRelease",
"PackageBuilder",
"Release",
"Sign",
"Test"
]
}
},
"Solution": {
"type": "string",
"description": "Path to a solution file that is automatically loaded"
},
"Target": {
"type": "array",
"description": "List of targets to be invoked. Default is '{default_target}'",
"items": {
"type": "string",
"enum": [
"Build",
"Clean",
"Compile",
"GitRelease",
"PackageBuilder",
"Release",
"Sign",
"Test"
]
}
},
"TestBuildStopWhenFailed": {
"type": "boolean"
},
Expand All @@ -167,18 +299,11 @@
},
"VendorId": {
"type": "string"
},
"Verbosity": {
"type": "string",
"description": "Logging verbosity during build execution. Default is 'Normal'",
"enum": [
"Minimal",
"Normal",
"Quiet",
"Verbose"
]
}
}
},
{
"$ref": "#/definitions/NukeBuild"
}
}
]
}
7 changes: 4 additions & 3 deletions Build/Build.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace></RootNamespace>
<NoWarn>CS0649;CS0169</NoWarn>
<NukeRootDirectory>.</NukeRootDirectory>
<NukeScriptDirectory>.</NukeScriptDirectory>
<NukeTelemetryVersion>1</NukeTelemetryVersion>
<Configurations>Debug;Release</Configurations>
</PropertyGroup>

<ItemGroup>
Expand All @@ -15,7 +16,7 @@

<ItemGroup>
<None Include="..\.github\workflows\*.yml" LinkBase="ci" />
<None Include=".github\**\*"/>
<None Include=".nuke\*"/>
<None Include=".github\**\*" />
<None Include=".nuke\*" />
</ItemGroup>
</Project>
Loading