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

Docs: Add guide for multiarch snaps #5041

Open
sed-i opened this issue Sep 14, 2024 · 1 comment
Open

Docs: Add guide for multiarch snaps #5041

sed-i opened this issue Sep 14, 2024 · 1 comment
Labels
documentation Documentation changes to the project itself or in-code help enhancement New features or optimizations

Comments

@sed-i
Copy link

sed-i commented Sep 14, 2024

What needs to get done

We should document how multiarch and snaps work:

  • Is there one *.snap file per arch (arm64, amd64, ...), or a single snap can be multiarch?
  • For testing purposes, can I cross-build a snap on my machine? E.g. build an arm64 snap on my amd64 machine? What if it's rust/go -- is it then possible to cross build?
  • What is the recommended way of setting up CI for multiarch builds? Does it have to involve launchpad?
  • What platforms are supported? For example, nushell publishes for x86_64, riscv64gc, armv7, aarch64-pc, aarch64-apple.

Why it needs to get done

Help users understand multiarch snaps so they can produce more compelling snaps.

@dilyn-corner
Copy link

dilyn-corner commented Sep 16, 2024

Architecture information is... Duplicated, largely, across three different pages: here, here, and here.

I think these pages cover your questions, but the answers should boil down to:

  • one .snap per arch, with a potential for an *_all.snap on core22 base snaps
  • you can certainly try to cross-build a snap. It isn't impossible, it's just potentially tricky.
  • By "multiarch" do you mean a single snap that can run on multiple architectures?
  • supported architectures

@lengau lengau added enhancement New features or optimizations documentation Documentation changes to the project itself or in-code help labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation changes to the project itself or in-code help enhancement New features or optimizations
Projects
None yet
Development

No branches or pull requests

3 participants