actions-marketplace-validations/Snapcraft Multiarch Build
Build a Snapcraft project for multiple architectures
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| path | The location of the Snapcraft project. Defaults to the base of the repository | yes | . |
| use-podman | Use 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. | no | false |
| build-info | Whether 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. | no | true |
| snapcraft-channel | The 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. | no | stable |
| snapcraft-args | Additional 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 | — |
| architecture | The 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. | yes | amd64 |
| environment | Environment 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-auth | The 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 | — |
Outputs
| name | description |
|---|---|
| snap | The file name of the resulting snap. |