chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

Unable to build successfully on Mac/Linux when doing a full fat .NET Framework build in CI #87

Closed gep13 closed 1 year ago

gep13 commented 1 year ago

What You Are Seeing?

When attempting to use 0.17.x on the chocolatey/choco build, we are seeing errors when attempting to run the build in CI on GitHub Actions, both in the Ubuntu and Mac builds. See:

https://github.com/chocolatey/choco/actions/runs/3336325890

as an example.

The issue here is that when running --target=CI, an attempt is made to run the AWS Lambda publishing step, and this has a dependency on the DotNetBuild task. When running a non-dotnet build, this step is attempted, even if we add the shouldPublishAwsLambdas parameter to false (it is true by default).

What is Expected?

The build should succeed on both Windows/Mac/Linux

How Did You Get This To Happen? (Steps to Reproduce)

Added a commit to the develop branch, and pushed, and then waited for the CI build to finish.

System Details

N/A

Output Log

N/A