Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
6c88707
Update cake-build/cake-action digest to d218f11
renovate[bot] Oct 3, 2025
2d9352b
Merge pull request #292 from cake-contrib/renovate/cake-build-cake-ac…
nils-a Oct 29, 2025
d8815ee
Update actions/upload-artifact action to v5
renovate[bot] Oct 29, 2025
9976c02
Merge pull request #294 from cake-contrib/renovate/major-github-artif…
nils-a Oct 29, 2025
16c14ba
Update github/codeql-action action to v4
renovate[bot] Oct 29, 2025
619cb12
Merge pull request #295 from cake-contrib/renovate/github-codeql-acti…
nils-a Oct 29, 2025
e4462d5
(#278) re-enabled build on macos
nils-a Oct 29, 2025
ee6784f
Merge pull request #296 from nils-a/feature/GH-278
nils-a Oct 29, 2025
2f0b338
(#284) add net7.0 to CI pipeline
nils-a Oct 29, 2025
b8312e0
Merge pull request #297 from nils-a/feature/GH-284
nils-a Oct 29, 2025
693ae50
Update actions/checkout action to v5
renovate[bot] Oct 29, 2025
ca67ad2
Merge pull request #290 from cake-contrib/renovate/actions-checkout-5.x
nils-a Oct 29, 2025
bd04787
Update actions/setup-dotnet action to v5
renovate[bot] Oct 29, 2025
edcc352
Merge pull request #291 from cake-contrib/renovate/actions-setup-dotn…
nils-a Oct 29, 2025
fca0c45
Update actions/cache digest to 0057852
renovate[bot] Oct 29, 2025
69a43e7
Merge pull request #288 from cake-contrib/renovate/actions-cache-digest
nils-a Oct 29, 2025
f38652b
Update dependency dotnet-sdk to v9.0.306
renovate[bot] Oct 29, 2025
47911b1
Merge pull request #286 from cake-contrib/renovate/dotnet-monorepo
nils-a Oct 29, 2025
26dd05c
Update dependency JetBrains.Annotations to v2025
renovate[bot] Oct 29, 2025
a6e4a3b
Merge pull request #287 from cake-contrib/renovate/jetbrains.annotati…
nils-a Oct 29, 2025
e36d74e
Update github/codeql-action digest to 0499de3
renovate[bot] Oct 30, 2025
a4550cd
Merge pull request #285 from cake-contrib/renovate/github-codeql-acti…
nils-a Nov 2, 2025
1ec4555
(#302) Start using Cake 6.0.0
gep13 Nov 22, 2025
2e600ce
(#306) Add GitHub Report Printer
gep13 Nov 22, 2025
8e0b355
(maint) Update output to include status info
gep13 Nov 22, 2025
513f944
(build) Add .NET 10.0 to build agent
gep13 Nov 23, 2025
2f7965d
Merge pull request #307 from gep13/github-report-printer
nils-a Nov 24, 2025
d60bbef
✨ feat(AzurePipelinesReportPrinter): add target name to summary title
JuergenRB Nov 28, 2025
92943cd
Merge pull request #311 from JuergenRB/feature/AzureTargetNameInSumma…
nils-a Nov 30, 2025
22589a3
Update actions/checkout action to v6
renovate[bot] Nov 30, 2025
7c4c7cf
Merge pull request #305 from cake-contrib/renovate/actions-checkout-6.x
nils-a Nov 30, 2025
e6f798d
Update dependency JetBrains.Annotations to 2025.2.4
renovate[bot] Nov 30, 2025
dc9c31f
Merge pull request #309 from cake-contrib/renovate/jetbrains.annotati…
nils-a Nov 30, 2025
92d1b8a
Update actions/setup-dotnet action to v5.0.1
renovate[bot] Nov 30, 2025
73e5e57
Merge pull request #308 from cake-contrib/renovate/actions-setup-dotn…
nils-a Nov 30, 2025
1b7746f
Update github/codeql-action digest to fdbfb4d
renovate[bot] Nov 30, 2025
a0328cd
Merge pull request #303 from cake-contrib/renovate/github-codeql-acti…
nils-a Nov 30, 2025
ec4354a
Update dependency Cake.Recipe to v4
renovate[bot] Nov 30, 2025
b2793bf
bump Cake in CI to 2.3.0 to match Cake.Recipe 4.x
nils-a Nov 30, 2025
5a8ef8c
Merge pull request #293 from cake-contrib/renovate/cake.recipe-4.x
nils-a Nov 30, 2025
ee41b00
Update cake monorepo to v6
renovate[bot] Nov 30, 2025
f9b3336
Merge pull request #298 from cake-contrib/renovate/major-cake-monorepo
nils-a Nov 30, 2025
826991c
Update dependency ubuntu to v24
renovate[bot] Nov 30, 2025
cb808c0
install mono for ubuntu 24.04
nils-a Nov 30, 2025
2192cd7
Merge pull request #281 from cake-contrib/renovate/ubuntu-24.x
nils-a Nov 30, 2025
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
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "1.3.0",
"version": "2.3.0",
"commands": [
"dotnet-cake"
]
Expand Down
30 changes: 22 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, ubuntu-22.04]
os: [windows-2022, ubuntu-24.04, macos-13]

env:
AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }}
Expand All @@ -44,29 +44,43 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6

- name: Fetch all tags and branches
run: git fetch --prune --unshallow

# codecov and unittests need 2.1, gitversion needs 5.0
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
# GitReleasemanager needs 7.0
# builds run on 9.0
- uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1
with:
dotnet-version: |
2.1
3.1
5.0
6.0
7.0
9.0

10.0
- name: Install mono
if: runner.os == 'Linux'
# check https://www.mono-project.com/download/stable/#download-lin
run: |
sudo apt install ca-certificates gnupg
sudo gpg --homedir /tmp --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo chmod +r /usr/share/keyrings/mono-official-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install -y mono-complete
mono --version
- name: Cache Tools
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

- name: Build project
uses: cake-build/cake-action@5167c3f6a9e15c76f009de2acdfb9488552bc0b9 # v3
uses: cake-build/cake-action@d218f1133bb74a1df0b08c89cfd8fc100c09e1a0 # v3
with:
script-path: recipe.cake
target: CI
Expand All @@ -75,7 +89,7 @@ jobs:

# currently, Cake.Recipe does not upload artifacts when run on gh-actions
- name: Upload Issues
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
if-no-files-found: warn
name: ${{ matrix.os }} Issues
Expand All @@ -84,7 +98,7 @@ jobs:
BuildArtifacts/**/coverlet/*.xml

- name: Upload Packages
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
if: runner.os == 'Windows'
with:
if-no-files-found: warn
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

strategy:
fail-fast: false
Expand All @@ -20,11 +20,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
with:
fetch-depth: 0

- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
- uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1
with:
dotnet-version: |
2.1
Expand All @@ -35,23 +35,35 @@ jobs:
8.0
9.0

- name: Install mono
if: runner.os == 'Linux'
# check https://www.mono-project.com/download/stable/#download-lin
run: |
sudo apt install ca-certificates gnupg
sudo gpg --homedir /tmp --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo chmod +r /usr/share/keyrings/mono-official-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install -y mono-complete
mono --version

- name: Cache Tools
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

- name: Initialize CodeQL
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
uses: github/codeql-action/init@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4
with:
languages: ${{ matrix.language }}

- name: Build project
uses: cake-build/cake-action@5167c3f6a9e15c76f009de2acdfb9488552bc0b9 # v3
uses: cake-build/cake-action@d218f1133bb74a1df0b08c89cfd8fc100c09e1a0 # v3
with:
script-path: recipe.cake
target: DotNetCore-Build
cake-version: tool-manifest

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4
2 changes: 1 addition & 1 deletion demo/dsl/.config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "4.0.0",
"version": "6.0.0",
"commands": [
"dotnet-cake"
]
Expand Down
4 changes: 2 additions & 2 deletions demo/frosting/build/Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
<PackageReference Include="Cake.Frosting" Version="4.0.0" />
<PackageReference Include="JetBrains.Annotations" Version="2025.2.4" />
<PackageReference Include="Cake.Frosting" Version="6.0.0" />
<ProjectReference Include="$(ProjectDir)../../../src/Cake.AzurePipelines.Module/Cake.AzurePipelines.Module.csproj" />
<ProjectReference Include="$(ProjectDir)../../../src/Cake.GitHubActions.Module/Cake.GitHubActions.Module.csproj" />
<ProjectReference Include="$(ProjectDir)../../../src/Cake.MyGet.Module/Cake.MyGet.Module.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "9.0.301",
"version": "10.0.100",
"rollForward": "latestFeature"
}
}
9 changes: 1 addition & 8 deletions recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#load nuget:?package=Cake.Recipe&version=3.1.1
#load nuget:?package=Cake.Recipe&version=4.0.0

Environment.SetVariableNames();

Expand All @@ -12,7 +12,6 @@ BuildParameters.SetParameters(
repositoryOwner: "cake-contrib",
shouldRunDotNetCorePack: true,
shouldUseDeterministicBuilds: true,
gitterMessage: "@/all " + standardNotificationMessage,
twitterMessage: standardNotificationMessage,
shouldRunCodecov: false,
preferredBuildProviderType: BuildProviderType.GitHubActions,
Expand All @@ -21,12 +20,6 @@ BuildParameters.SetParameters(

BuildParameters.PrintParameters(Context);

ToolSettings.SetToolPreprocessorDirectives(
gitReleaseManagerGlobalTool: "#tool dotnet:?package=GitReleaseManager.Tool&version=0.18.0",
gitVersionGlobalTool: "#tool dotnet:?package=GitVersion.Tool&version=5.12.0",
reportGeneratorGlobalTool: "#tool dotnet:?package=dotnet-reportgenerator-globaltool&version=5.4.7",
coverallsGlobalTool: "#tool dotnet:?package=coveralls.net&version=4.0.1");

ToolSettings.SetToolSettings(context: Context);

Build.RunDotNetCore();
36 changes: 30 additions & 6 deletions src/Cake.AzurePipelines.Module/AzurePipelinesReportPrinter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using System;
using System;
using System.IO;
using System.Linq;
using System.Text;
using Cake.Common.Build;
using Cake.Core;
using Cake.Core.Diagnostics;
using Cake.Core.IO;
using Cake.Module.Shared;
using JetBrains.Annotations;
Expand Down Expand Up @@ -53,6 +55,8 @@ public override void Write(CakeReport report)

private void WriteToMarkdown(CakeReport report)
{
var includeSkippedReasonColumn = report.Any(r => !string.IsNullOrEmpty(r.SkippedMessage));

var maxTaskNameLength = 29;
foreach (var item in report)
{
Expand All @@ -67,17 +71,37 @@ private void WriteToMarkdown(CakeReport report)

var sb = new StringBuilder();
sb.AppendLine("");
sb.AppendLine("|Task|Duration|");
sb.AppendLine("|:---|-------:|");

if (includeSkippedReasonColumn)
{
sb.AppendLine("|Task|Duration|Status|Skip Reason|");
sb.AppendLine("|:---|-------:|:-----|:----------|");
}
else
{
sb.AppendLine("|Task|Duration|Status|");
sb.AppendLine("|:---|-------:|:-----|");
}

var targetName = string.Empty;
foreach (var item in report)
{
if (ShouldWriteTask(item))
{
sb.AppendLine(string.Format(lineFormat, item.TaskName, FormatDuration(item)));
if (includeSkippedReasonColumn)
{
sb.AppendLine(string.Format(lineFormat, item.TaskName, FormatDuration(item), item.ExecutionStatus.ToReportStatus(), item.SkippedMessage));
}
else
{
sb.AppendLine(string.Format(lineFormat, item.TaskName, FormatDuration(item), item.ExecutionStatus.ToReportStatus()));
}
}

targetName = item.TaskName; // Use the last task name it is the target name
}

sb.AppendLine("");
sb.AppendLine(string.Empty);
var b = _context.BuildSystem().AzurePipelines;
FilePath agentWorkPath = b.Environment.Build.ArtifactStagingDirectory + "/tasksummary.md";
var absFilePath = agentWorkPath.MakeAbsolute(_context.Environment);
Expand All @@ -87,7 +111,7 @@ private void WriteToMarkdown(CakeReport report)
writer.Write(sb.ToString());
}

_console.WriteLine($"##vso[task.addattachment type=Distributedtask.Core.Summary;name=Cake Build Summary;]{absFilePath.MakeAbsolute(_context.Environment).FullPath}");
_console.WriteLine($"##vso[task.addattachment type=Distributedtask.Core.Summary;name=Cake {targetName} Build Summary;]{absFilePath.MakeAbsolute(_context.Environment).FullPath}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="5.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="5.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="6.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="6.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2025.2.4" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CakeContrib.Guidelines" Version="1.6.1">
<PackageReference Include="CakeContrib.Guidelines" Version="1.7.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="5.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="5.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="6.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="6.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2025.2.4" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
3 changes: 2 additions & 1 deletion src/Cake.GitHubActions.Module/GitHubActionsModule.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Cake.Core;
using Cake.Core;
using Cake.Core.Annotations;
using Cake.Core.Composition;
using Cake.Core.Diagnostics;
Expand All @@ -22,6 +22,7 @@ public void Register(ICakeContainerRegistrar registrar)

registrar.RegisterType<GitHubActionsEngine>().As<ICakeEngine>().Singleton();
registrar.RegisterType<GitHubActionsLog>().As<ICakeLog>().Singleton();
registrar.RegisterType<GitHubActionsReportPrinter>().As<ICakeReportPrinter>().Singleton();
}
}
}
Loading
Loading