build¶
The build workflow builds the snap found in the repository
using the canonical/action-build
action,
and uploads the result as a workflow artifact.
The workflow builds a matrix
over the snapcraft-source-subdir and runs-on inputs,
so a caller can build several snaps,
or the same snap on several runners, in a single run.
Usage¶
jobs:
build:
permissions:
contents: read
uses: canonical/robotics-actions-workflows/.github/workflows/build.yaml@main
Inputs¶
Input |
Type |
Default |
Required |
Description |
|---|---|---|---|---|
|
string |
|
no |
The branch to checkout. |
|
string |
|
no |
The runner(s) to use. Accepts a JSON list, for example |
|
string |
|
no |
The arguments to pass to |
|
string |
|
no |
The channel from which to install Snapcraft. |
|
boolean |
|
no |
Whether to enable Snapcraft experimental extensions. |
|
string |
|
no |
The path where to execute Snapcraft. Accepts a JSON list to build multiple snaps, for example |
Secrets¶
This workflow takes no secrets.
Outputs¶
The workflow declares no workflow outputs.
Each built snap is uploaded as a workflow artifact named
workflow-build-snap-<snap-file-name>-<branch>,
with a retention of 10 days.
The run fails if no snap file is produced.
Permissions¶
contents: read