Skip to content
Open
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
5 changes: 0 additions & 5 deletions .build/AirframeBuild.GitHubActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,12 @@ public partial class AirframeBuild
{
public Target GitHubActions => definition => definition
.OnlyWhenStatic(IsRunningOnGitHubActions)
.DependsOn(Workloads)
.DependsOn(Restore)
.DependsOn(Build)
.DependsOn(Test)
.DependsOn(Pack)
.Executes();

public Target Workloads => definition => definition
.Before(Restore)
.Executes(() => DotNetTasks.DotNetWorkloadInstall(configurator => configurator.AddWorkloadId("ios")));

public static RocketSurgeonGitHubActionsConfiguration Middleware(RocketSurgeonGitHubActionsConfiguration configuration)
{
var buildJob = configuration.Jobs.Cast<RocketSurgeonsGithubActionsJob>().First(z => z.Name.Equals("build", StringComparison.OrdinalIgnoreCase));
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.101'
- name: 🎁 dotnet tool restore
- name: 🚒 dotnet workload restore
continue-on-error: true
run: |
dotnet tool restore
- name: Workloads
id: workloads
dotnet workload restore
- name: ⚒️ dotnet tool restore
run: |
dotnet nuke Workloads --skip
dotnet tool restore
- name: 🎁 Restore
id: restore
run: |
dotnet nuke Restore --skip
- name: ⚙ Build
- name: ⚙ Build
id: build
run: |
dotnet nuke Build --skip
Expand All @@ -86,7 +86,7 @@ jobs:
id: gitHubActions
run: |
dotnet nuke GitHubActions --skip
- name: 🐿 Publish Coverage
- name: 📫 Publish Coverage
uses: codecov/[email protected]
with:
name: 'actions-${{ matrix.os }}'
Expand Down
222 changes: 103 additions & 119 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,82 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/build",
"title": "Build Schema",
"definitions": {
"build": {
"type": "object",
"Host": {
"type": "string",
"enum": [
"AppVeyor",
"AzurePipelines",
"Bamboo",
"Bitbucket",
"Bitrise",
"GitHubActions",
"GitLab",
"Jenkins",
"Rider",
"SpaceAutomation",
"TeamCity",
"Terminal",
"TravisCI",
"VisualStudio",
"VSCode"
]
},
"ExecutableTarget": {
"type": "string",
"enum": [
"Build",
"Clean",
"CoreBuild",
"CorePack",
"CoreRestore",
"CoreTest",
"Default",
"DotNetFormat",
"DotnetToolRestore",
"GenerateCodeCoverageBadges",
"GenerateCodeCoverageReport",
"GenerateCodeCoverageReportCobertura",
"GenerateCodeCoverageSummary",
"GenerateReadme",
"GitHubActions",
"JetBrainsCleanupCode",
"Lint",
"LintGitAdd",
"LintPublicApiAnalyzers",
"LintStaged",
"MoveUnshippedToShipped",
"Pack",
"PostLint",
"RegenerateBuildConfigurations",
"Restore",
"ShipPublicApis",
"Test",
"TriggerCodeCoverageReports"
]
},
"Verbosity": {
"type": "string",
"description": "",
"enum": [
"Verbose",
"Normal",
"Minimal",
"Quiet"
]
},
"NukeBuild": {
"properties": {
"Artifacts": {
"type": "string",
"description": "The directory where artifacts are to be dropped"
},
"Configuration": {
"type": "string",
"description": "Configuration to build",
"enum": [
"Debug",
"Release"
]
},
"Continue": {
"type": "boolean",
"description": "Indicates to continue a previously failed build attempt"
},
"Coverage": {
"type": "string",
"description": "The directory where coverage artifacts are to be dropped"
},
"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"
]
},
"lint-files": {
"type": "array",
"description": "The files to lint, if not given lints all files",
"items": {
"type": "string"
}
"$ref": "#/definitions/Host"
},
"NoLogo": {
"type": "boolean",
Expand Down Expand Up @@ -85,93 +105,57 @@
"type": "array",
"description": "List of targets to be skipped. Empty list skips all dependencies",
"items": {
"type": "string",
"enum": [
"Build",
"Clean",
"CoreBuild",
"CorePack",
"CoreRestore",
"CoreTest",
"Default",
"DotNetFormat",
"DotnetToolRestore",
"GenerateCodeCoverageBadges",
"GenerateCodeCoverageReport",
"GenerateCodeCoverageReportCobertura",
"GenerateCodeCoverageSummary",
"GenerateReadme",
"GitHubActions",
"JetBrainsCleanupCode",
"Lint",
"LintGitAdd",
"LintPublicApiAnalyzers",
"LintStaged",
"MoveUnshippedToShipped",
"Pack",
"PostLint",
"RegenerateBuildConfigurations",
"Restore",
"ShipPublicApis",
"Test",
"TriggerCodeCoverageReports",
"Workloads"
]
"$ref": "#/definitions/ExecutableTarget"
}
},
"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",
"CoreBuild",
"CorePack",
"CoreRestore",
"CoreTest",
"Default",
"DotNetFormat",
"DotnetToolRestore",
"GenerateCodeCoverageBadges",
"GenerateCodeCoverageReport",
"GenerateCodeCoverageReportCobertura",
"GenerateCodeCoverageSummary",
"GenerateReadme",
"GitHubActions",
"JetBrainsCleanupCode",
"Lint",
"LintGitAdd",
"LintPublicApiAnalyzers",
"LintStaged",
"MoveUnshippedToShipped",
"Pack",
"PostLint",
"RegenerateBuildConfigurations",
"Restore",
"ShipPublicApis",
"Test",
"TriggerCodeCoverageReports",
"Workloads"
]
"$ref": "#/definitions/ExecutableTarget"
}
},
"Verbosity": {
"type": "string",
"description": "Logging verbosity during build execution. Default is 'Normal'",
"$ref": "#/definitions/Verbosity"
}
}
}
},
"allOf": [
{
"properties": {
"Artifacts": {
"type": "string",
"description": "The directory where artifacts are to be dropped"
},
"Configuration": {
"type": "string",
"description": "Configuration to build",
"enum": [
"Minimal",
"Normal",
"Quiet",
"Verbose"
"Debug",
"Release"
]
},
"Coverage": {
"type": "string",
"description": "The directory where coverage artifacts are to be dropped"
},
"lint-files": {
"type": "array",
"description": "The files to lint, if not given lints all files",
"items": {
"type": "string"
}
},
"Solution": {
"type": "string",
"description": "Path to a solution file that is automatically loaded"
}
}
},
{
"$ref": "#/definitions/NukeBuild"
}
}
]
}
4 changes: 2 additions & 2 deletions directory.packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<PackageVersion Include="GitVersion.Tool" Version="5.12.0"/>
<PackageVersion Include="JetBrains.ReSharper.CommandLineTools" Version="2023.3.6"/>
<PackageVersion Include="NuGet.CommandLine" Version="6.8.0"/>
<PackageVersion Include="Nuke.Common" Version="8.0.0"/>
<PackageVersion Include="Nuke.Common" Version="8.1.4"/>
<PackageVersion Include="ReportGenerator" Version="5.4.8"/>
<PackageVersion Include="Rocket.Surgery.Nuke" Version="1.8.16"/>
<PackageVersion Include="Rocket.Surgery.Nuke" Version="1.8.36"/>
</ItemGroup>
<ItemGroup>
<PackageVersion Include="BenchmarkDotNet" Version="0.15.2"/>
Expand Down
Loading