Skip to content

(#302 #306) Update to Cake 6.0.0 and add GitHub Report Printer#307

Merged
nils-a merged 4 commits intocake-contrib:developfrom
gep13:github-report-printer
Nov 24, 2025
Merged

(#302 #306) Update to Cake 6.0.0 and add GitHub Report Printer#307
nils-a merged 4 commits intocake-contrib:developfrom
gep13:github-report-printer

Conversation

@gep13
Copy link
Copy Markdown
Member

@gep13 gep13 commented Nov 22, 2025

Bump all the Cake.* references, and also switch to using .NET 10.

The GitHub Report Printer will be used to improve the Cake output
when running on GitHub Actions. This includes the task summary
being written out to the Step Summary.

With the latest releases of Cake, the task summary is written out even
when there is a failed build, so this means that we can capture that
output into the Step Summary, to get an overview of which task might
have failed the build.

@gep13 gep13 requested a review from nils-a November 22, 2025 16:15
@gep13
Copy link
Copy Markdown
Member Author

gep13 commented Nov 22, 2025

@nils-a this is currently failing the build due to this:

image

Does this need an update to the CakeContrib.Guidelines package?

@gep13
Copy link
Copy Markdown
Member Author

gep13 commented Nov 22, 2025

You can see an example output from these changes here:

https://github.com/gep13/cake-test/actions/runs/19597731877

Screenshot 2025-11-22 161747

@gep13
Copy link
Copy Markdown
Member Author

gep13 commented Nov 22, 2025

I have been meaning to create this PR for a while, but it felt like now was the time, since now we have this ability to always have a task summary, even when the build fails. This means, that we can always write this information in the Step Summary in GitHub Actions.

This is what I am trying to show in the image above, since the Windows build failed, but the Step Summary was still updated.

Copy link
Copy Markdown
Contributor

@nils-a nils-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The modules need to stay at net8.0 - this is the minimal TFM supported by Cake 6.

@nils-a
Copy link
Copy Markdown
Contributor

nils-a commented Nov 22, 2025

@nils-a this is currently failing the build due to this:

image Does this need an update to the `CakeContrib.Guidelines` package?

Yes, that too. 😁

CakeContrib.Guidelines 1.7.0 added support for Cake v6.
However, the correct Target Framework for Cake 6 is still net8.0, so that needs to stay the same as before.

Bump all the Cake.* references, and also switch to using .NET 10.
This will be used to improve the Cake output when running on GitHub
Actions.  This includes the task summary being written out to the Step
Summary.

With the latest releases of Cake, the task summary is written out even
when there is a failed build, so this means that we can capture that
output into the Step Summary, to get an overview of which task might
have failed the build.
Update the default output, as well as the Azure Pipelines output, to
include information about the status of the task, and all the skip
reason, if there is something.

This change brings consistency to the output after the addition of the
new GitHub Actions Report Printer.
@gep13 gep13 force-pushed the github-report-printer branch from 3cd7a9c to 8e0b355 Compare November 23, 2025 13:35
@gep13 gep13 requested a review from nils-a November 23, 2025 13:36
@gep13
Copy link
Copy Markdown
Member Author

gep13 commented Nov 23, 2025

@nils-a this is ready for another review.

Latest GitHub Actions run is here: https://github.com/gep13/cake-test/actions/runs/19612025024

Copy link
Copy Markdown
Contributor

@nils-a nils-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nils-a nils-a enabled auto-merge November 23, 2025 13:53
@nils-a nils-a merged commit 2f7965d into cake-contrib:develop Nov 24, 2025
7 of 8 checks passed
@gep13 gep13 deleted the github-report-printer branch November 24, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Support for GitHub Actions Update Cake.Buildsystems.Module add-in to target Cake v6.0.0

2 participants