canonical / craft-application

The basis for *craft applications
https://canonical-craft-application.readthedocs-hosted.com/en/latest
GNU Lesser General Public License v3.0
5 stars 7 forks source link

Implement --build-for in addition to --platform #254

Closed cmatsuoka closed 3 months ago

cmatsuoka commented 4 months ago

What needs to get done

When platforms: is used, craft applications should be able to select build platforms using --build-for, according to the following rules:

Why it needs to get done

--build-for is extensively used and there's a reasonable way to map it to pick platform entries.

syncronize-issues-to-jira[bot] commented 4 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2562.

This message was autogenerated

sergiusens commented 3 months ago

The second entry looks like it tries to solve for:

platforms:
  arm64:
  rpi4:
     build-on: arm64
     build-for: arm64