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

fix(remotebuild): use build-on archs #5265

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

Conversation

mr-cal
Copy link
Collaborator

@mr-cal mr-cal commented Feb 18, 2025

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint?
  • Have you successfully run make test?

This PR updates Snapcraft to pass build-on architectures to Launchpad rather than the build-for architectures. It updates the spread tests to exercise this.

Benefits:

  • Previously, a snap with build-for: [all] would build on amd64. Now it builds on one of the build-on architectures in the snapcraft.yaml.
  • Cross-compiling works with remote builds.

This is possible due to the following constraints:

  • Snapcraft only allows one artifact to be remotely built on each build-on architecture.
  • Launchpad accepts a list of architectures where to build an artifact and choose one architecture from that list.

Spread tests: https://github.com/canonical/snapcraft/actions/runs/13401419675

Fixes #4996
(CRAFT-3280)

@mr-cal mr-cal force-pushed the work/CRAFT-3280-cross-compiles branch from d417958 to 18856a8 Compare February 20, 2025 16:48
@mr-cal mr-cal marked this pull request as ready for review February 20, 2025 19:39
Comment on lines +107 to +112
<<<<<<< HEAD
- `#4996`_ Remote build gives an unfriendly error when attempting to cross-compile.
=======
- `#5258`_ The Flutter plugin fails to install Flutter for ``core22`` and ``core24``
snaps.
>>>>>>> d4179581e (docs: add remote-build changes)
Copy link
Contributor

Choose a reason for hiding this comment

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

Merge conflict!

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this file supposed to be here?

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.

remote build: error if cross-compiling
2 participants