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

feat: Add support for building + releasing core24 based snaps #38

Merged
merged 2 commits into from
May 23, 2024

Conversation

NucciTheBoss
Copy link
Member

core24 now uses the platforms keyword for specifying the build architecture for snaps rather than the architectures keyword. This pull request updates the get-architectures and release-to-candidate actions to support using the platforms top-level key to determine which arches to build the snap for.

Also, the remote-build command, when building core24 snaps, will use the --platforms flag rather than the --build-for flag.

core24 uses the `platforms` key for specifying the architecture of the snap
rather than `architectures`. This commit adds a conditional that properly
handles the `platforms` key when determining which arches to build for.

Signed-off-by: Jason C. Nucciarone <[email protected]>
`core24` supports using the platform flag with the Launchpad
remote-builders. This commit adds a conditional that checks if the
base is core24. If the base is core24, it uses the `--platfrom` flag
rather than the build-for flag.

Signed-off-by: Jason C. Nucciarone <[email protected]>
@NucciTheBoss NucciTheBoss added the enhancement New feature or request label May 23, 2024
@NucciTheBoss NucciTheBoss self-assigned this May 23, 2024
Copy link
Member

@jnsgruk jnsgruk left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! Do you have any examples of this running somewhere?

@NucciTheBoss
Copy link
Member Author

@jnsgruk I'm going to use it with the Slurm snap: charmed-hpc/slurm-snap#2

Upgraded to core24 since it means that I can drop the AMD GPU drivers that I am pulling from a PPA and can instead use the packages available in archive.

@jnsgruk jnsgruk merged commit c31bf20 into snapcrafters:main May 23, 2024
1 check passed
@NucciTheBoss NucciTheBoss deleted the core24-platforms-support branch May 29, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants