Upgrade to NUKE 8.1 (#5952)
Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
This commit is contained in:
parent
51910810c1
commit
aa14e7f536
8
.github/workflows/pr.yml
vendored
8
.github/workflows/pr.yml
vendored
|
|
@ -23,11 +23,15 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- '**/*'
|
- '**/*'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-latest:
|
ubuntu-latest:
|
||||||
name: ubuntu-latest
|
name: ubuntu-latest
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: 'Run: Compile, Test, Pack'
|
- name: 'Run: Compile, Test, Pack'
|
||||||
run: ./scripts/nuke/build.cmd Compile Test Pack
|
run: ./build.cmd Compile Test Pack
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,71 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
"$ref": "#/definitions/build",
|
"properties": {
|
||||||
"title": "Build Schema",
|
"AnalyseCode": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"Configuration": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Debug",
|
||||||
|
"Release"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"IgnoreFailedSources": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Ignore unreachable sources during Restore"
|
||||||
|
},
|
||||||
|
"Solution": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Path to a solution file that is automatically loaded"
|
||||||
|
},
|
||||||
|
"Version": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"build": {
|
"Host": {
|
||||||
"type": "object",
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"AppVeyor",
|
||||||
|
"AzurePipelines",
|
||||||
|
"Bamboo",
|
||||||
|
"Bitbucket",
|
||||||
|
"Bitrise",
|
||||||
|
"GitHubActions",
|
||||||
|
"GitLab",
|
||||||
|
"Jenkins",
|
||||||
|
"Rider",
|
||||||
|
"SpaceAutomation",
|
||||||
|
"TeamCity",
|
||||||
|
"Terminal",
|
||||||
|
"TravisCI",
|
||||||
|
"VisualStudio",
|
||||||
|
"VSCode"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ExecutableTarget": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Clean",
|
||||||
|
"Compile",
|
||||||
|
"Pack",
|
||||||
|
"Restore",
|
||||||
|
"Test"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Verbosity": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "",
|
||||||
|
"enum": [
|
||||||
|
"Verbose",
|
||||||
|
"Normal",
|
||||||
|
"Minimal",
|
||||||
|
"Quiet"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"NukeBuild": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"AnalyseCode": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"Configuration": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"Debug",
|
|
||||||
"Release"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Continue": {
|
"Continue": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Indicates to continue a previously failed build attempt"
|
"description": "Indicates to continue a previously failed build attempt"
|
||||||
|
|
@ -25,29 +75,8 @@
|
||||||
"description": "Shows the help text for this build assembly"
|
"description": "Shows the help text for this build assembly"
|
||||||
},
|
},
|
||||||
"Host": {
|
"Host": {
|
||||||
"type": "string",
|
|
||||||
"description": "Host for execution. Default is 'automatic'",
|
"description": "Host for execution. Default is 'automatic'",
|
||||||
"enum": [
|
"$ref": "#/definitions/Host"
|
||||||
"AppVeyor",
|
|
||||||
"AzurePipelines",
|
|
||||||
"Bamboo",
|
|
||||||
"Bitbucket",
|
|
||||||
"Bitrise",
|
|
||||||
"GitHubActions",
|
|
||||||
"GitLab",
|
|
||||||
"Jenkins",
|
|
||||||
"Rider",
|
|
||||||
"SpaceAutomation",
|
|
||||||
"TeamCity",
|
|
||||||
"Terminal",
|
|
||||||
"TravisCI",
|
|
||||||
"VisualStudio",
|
|
||||||
"VSCode"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"IgnoreFailedSources": {
|
|
||||||
"type": "boolean",
|
|
||||||
"description": "Ignore unreachable sources during Restore"
|
|
||||||
},
|
},
|
||||||
"NoLogo": {
|
"NoLogo": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
|
@ -76,48 +105,22 @@
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "List of targets to be skipped. Empty list skips all dependencies",
|
"description": "List of targets to be skipped. Empty list skips all dependencies",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"$ref": "#/definitions/ExecutableTarget"
|
||||||
"enum": [
|
|
||||||
"Clean",
|
|
||||||
"Compile",
|
|
||||||
"Pack",
|
|
||||||
"Restore",
|
|
||||||
"Test"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Solution": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "Path to a solution file that is automatically loaded"
|
|
||||||
},
|
|
||||||
"Target": {
|
"Target": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "List of targets to be invoked. Default is '{default_target}'",
|
"description": "List of targets to be invoked. Default is '{default_target}'",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"$ref": "#/definitions/ExecutableTarget"
|
||||||
"enum": [
|
|
||||||
"Clean",
|
|
||||||
"Compile",
|
|
||||||
"Pack",
|
|
||||||
"Restore",
|
|
||||||
"Test"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Verbosity": {
|
"Verbosity": {
|
||||||
"type": "string",
|
|
||||||
"description": "Logging verbosity during build execution. Default is 'Normal'",
|
"description": "Logging verbosity during build execution. Default is 'Normal'",
|
||||||
"enum": [
|
"$ref": "#/definitions/Verbosity"
|
||||||
"Minimal",
|
|
||||||
"Normal",
|
|
||||||
"Quiet",
|
|
||||||
"Verbose"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Version": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"$ref": "#/definitions/NukeBuild"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Param(
|
||||||
Write-Output "PowerShell $($PSVersionTable.PSEdition) version $($PSVersionTable.PSVersion)"
|
Write-Output "PowerShell $($PSVersionTable.PSEdition) version $($PSVersionTable.PSVersion)"
|
||||||
|
|
||||||
Set-StrictMode -Version 2.0; $ErrorActionPreference = "Stop"; $ConfirmPreference = "None"; trap { Write-Error $_ -ErrorAction Continue; exit 1 }
|
Set-StrictMode -Version 2.0; $ErrorActionPreference = "Stop"; $ConfirmPreference = "None"; trap { Write-Error $_ -ErrorAction Continue; exit 1 }
|
||||||
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent "..\.."
|
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# CONFIGURATION
|
# CONFIGURATION
|
||||||
|
|
@ -9,10 +9,10 @@ SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
|
||||||
# CONFIGURATION
|
# CONFIGURATION
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
BUILD_PROJECT_FILE="$SCRIPT_DIR/../../build/_build.csproj"
|
BUILD_PROJECT_FILE="$SCRIPT_DIR/build/_build.csproj"
|
||||||
TEMP_DIRECTORY="$SCRIPT_DIR/../..//.nuke/temp"
|
TEMP_DIRECTORY="$SCRIPT_DIR//.nuke/temp"
|
||||||
|
|
||||||
DOTNET_GLOBAL_FILE="$SCRIPT_DIR/../..//global.json"
|
DOTNET_GLOBAL_FILE="$SCRIPT_DIR//global.json"
|
||||||
DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh"
|
DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh"
|
||||||
DOTNET_CHANNEL="STS"
|
DOTNET_CHANNEL="STS"
|
||||||
|
|
||||||
|
|
@ -8,7 +8,8 @@ using Nuke.Components;
|
||||||
OnPullRequestIncludePaths = ["**/*"],
|
OnPullRequestIncludePaths = ["**/*"],
|
||||||
PublishArtifacts = false,
|
PublishArtifacts = false,
|
||||||
InvokedTargets = [nameof(ICompile.Compile), nameof(ITest.Test), nameof(IPack.Pack)],
|
InvokedTargets = [nameof(ICompile.Compile), nameof(ITest.Test), nameof(IPack.Pack)],
|
||||||
CacheKeyFiles = []
|
CacheKeyFiles = [],
|
||||||
|
ConcurrencyCancelInProgress = true
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
public partial class Build;
|
public partial class Build;
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Nuke.Components" Version="8.0.0" />
|
<PackageReference Include="Nuke.Components" Version="8.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!--Overridden for vulnerability reasons with dependencies referencing older versions.-->
|
<!--Overridden for vulnerability reasons with dependencies referencing older versions.-->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue