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
292 changes: 198 additions & 94 deletions Build/.nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,155 @@
{
"$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",
"properties": {
"ApplicationType": {
"type": "string"
"Title": {
"type": [
"null",
"string"
]
},
"Continue": {
"type": "boolean",
"description": "Indicates to continue a previously failed build attempt"
"Image": {
"type": [
"null",
"string"
]
},
"Folder": {
"type": "string"
"ImageSmall": {
"type": [
"null",
"string"
]
},
"GitHubToken": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
"Icon": {
"type": [
"null",
"string"
]
},
"Help": {
"type": "boolean",
"description": "Shows the help text for this build assembly"
"Licence": {
"type": [
"null",
"string"
]
},
"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"
"Language": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/IssLanguage"
}
]
},
"InstallationFiles": {
"type": "string"
"IssLanguageLicences": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/IssLanguageLicence"
}
}
}
},
"IssLanguage": {
"type": "object",
"properties": {
"Name": {
"type": [
"null",
"string"
]
},
"IssConfiguration": {
"type": "string"
"MessagesFile": {
"type": [
"null",
"string"
]
}
}
},
"IssLanguageLicence": {
"type": "object",
"properties": {
"Name": {
"type": [
"null",
"string"
]
},
"MainName": {
"type": "string"
"MessagesFile": {
"type": [
"null",
"string"
]
},
"MiddleVersions": {
"type": "boolean"
"Licence": {
"type": [
"null",
"string"
]
}
}
},
"ExecutableTarget": {
"type": "string",
"enum": [
"Build",
"Clean",
"Compile",
"GitRelease",
"PackageBuilder",
"Release",
"Sign"
]
},
"Verbosity": {
"type": "string",
"description": "",
"enum": [
"Verbose",
"Normal",
"Minimal",
"Quiet"
]
},
"NukeBuild": {
"properties": {
"Continue": {
"type": "boolean",
"description": "Indicates to continue a previously failed build attempt"
},
"Name": {
"type": "string"
"Help": {
"type": "boolean",
"description": "Shows the help text for this build assembly"
},
"NewVersions": {
"type": "boolean"
"Host": {
"description": "Host for execution. Default is 'automatic'",
"$ref": "#/definitions/Host"
},
"NoLogo": {
"type": "boolean",
Expand All @@ -82,6 +170,65 @@
"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": {
"$ref": "#/definitions/IssConfiguration"
},
"MainName": {
"type": "string"
},
"MiddleVersions": {
"type": "boolean"
},
"Name": {
"type": "string"
},
"NewVersions": {
"type": "boolean"
},
"ProjectNameFolder": {
"type": "boolean"
},
Expand All @@ -103,10 +250,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,59 +258,20 @@
"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"
]
}
},
"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"
]
}
},
"VendorDescription": {
"type": "string"
},
"VendorId": {
"type": "string"
},
"Verbosity": {
"type": "string",
"description": "Logging verbosity during build execution. Default is 'Normal'",
"enum": [
"Minimal",
"Normal",
"Quiet",
"Verbose"
]
}
}
},
{
"$ref": "#/definitions/NukeBuild"
}
}
]
}
2 changes: 1 addition & 1 deletion Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using ricaun.Nuke;
using ricaun.Nuke.Components;

class Build : NukeBuild, IPublishRevit
class Build : NukeBuild, IPublishRevit, IGitPreRelease
{
string IHazRevitPackageBuilder.Application => "Revit.App";
public static int Main() => Execute<Build>(x => x.From<IPublishRevit>().Build);
Expand Down
2 changes: 1 addition & 1 deletion Build/Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ricaun.Nuke.PackageBuilder" Version="*" />
<PackageReference Include="ricaun.Nuke.PackageBuilder" Version="*-*" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $TempDirectory = "$PSScriptRoot\\.nuke\temp"

$DotNetGlobalFile = "$PSScriptRoot\\global.json"
$DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1"
$DotNetChannel = "Current"
$DotNetChannel = "LTS"

$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
$env:DOTNET_CLI_TELEMETRY_OPTOUT = 1
Expand Down
2 changes: 1 addition & 1 deletion Build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TEMP_DIRECTORY="$SCRIPT_DIR//.nuke/temp"

DOTNET_GLOBAL_FILE="$SCRIPT_DIR//global.json"
DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh"
DOTNET_CHANNEL="Current"
DOTNET_CHANNEL="LTS"

export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
Expand Down
Loading