diddlesnaps/Snapcraft Multiarch Build

Build a Snapcraft project for multiple architectures

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathThe location of the Snapcraft project. Defaults to the base of the repository yes.
use-podmanUse Podman instead of Docker (experimental) You cannot build for foreign architectures via binfmt using Podman. Therefore, this is best used when you are using a self-hosted runner that has the correct target architecture. Using the GitHub hosted runners you can only build for x86_64/amd64 with Podman. nofalse
build-infoWhether to include build information in the resulting snap. This will add snap/manifest.yaml and snap/snapcraft.yaml files to the snap. The Snap Store can use this information to detect snaps with security vulnerabilities introduced through stage-packages. Proprietary applications may want to disable this due to the information leakage. notrue
snapcraft-channelThe Snapcraft channel to use By default, the action will use the stable version of Snapcraft to build the project. This parameter can be used to instead select a different channel such as beta, candidate, or edge. nostable
snapcraft-argsAdditional arguments to pass to Snapcraft Some experimental Snapcraft features are disabled by default and must be turned on via a `--enable-experimental-*` command line argument. This parameter can be used to turn on such features. no
architectureThe architecture to build with Snapcraft Snap Packages run on multiple CPU architectures. This parameter allows you to build for any of the supported architectures. It accepts the same values you would use in the `build-on` option in your `snapcraft.yaml` when building via the Build Service. You may only specify one architecture at a time so it's best to combine this with the build matrix feature of GitHub Actions. yesamd64
environmentEnvironment to pass to Snapcraft Add environment variables to the Snapcraft build context. Each variable needs to be specified on a separate line. For example: environment: | FOO=bar BAZ=qux no
store-authThe Snap Store authentication token This token is used to authenticate with the Snap Store when uploading the snap. It can be obtained by running `snapcraft export-login --snaps <snap-name> -` and copying the output. no
namedescription
snapThe file name of the resulting snap.