Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build only for Linux x64 on CI #7763

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

emlautarom1
Copy link
Contributor

Fixes #7762

Changes

  • Build only for linux-x64 on Github Workflows

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

Notes on testing

CI should be green without affecting other workflows.

Documentation

Requires documentation update

  • Yes
  • No

Requires explanation in Release Notes

  • Yes
  • No

Remarks

When running dotnet build we're currently generating native files for platforms that we don't care about like tvos-arm64 among several others. All of these files take considerable space which can cause issues due to disk usage on CI.

In an ideal world we could list exactly the platforms that we target but alas this does not work (see dotnet/sdk#42153 for an extremely similar case), which limits us to specifying at most one single platform.

<PropertyGroup Condition="'$(CI)' == 'true'">
<!-- Required due to an issue with transitive dependencies of Colorful.Console -->
<!-- See: https://github.com/tomakita/Colorful.Console/pull/94 -->
<NoWarn>NU1605</NoWarn>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Colorful.Console does not officially support .NET 8 which causes issues when specifying runtimes. I'm not sure if the issue just does not show up in "normal" builds but is still there, or is it only due to the usage of specific runtimes.

Microsoft's docs are quite poor in this case and the proposed workaround just does not work: https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1605#example-3

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.

Broken CI due to lack of space
2 participants