Warning when using canonical/action-build on CI

We’ve been using the GitHub - canonical/action-build: A Github action for building Snapcraft projects action to do the FreeCAD snap builds in FreeCAD for a while. Only due to a recent issue, I noticed this warning when using the action:

Running snapcraft without a command will not be possible in future releases. Use ‘snapcraft pack’ instead.

There is an existing issue and a pull request to fix this: Run `snapcraft pack` to build, to suppress warnings by joedborg · Pull Request #89 · canonical/action-build · GitHub, but so far it has gone unnoticed. Could perhaps someone at Canonical with the right permissions review/merge that PR? On the other hand, that action appears to be unmaintained: is there another recommended way of building snaps on CI?

Thank you.

1 Like

Hi - I’ve gotten in touch with who I believe is the maintainer of this repository right now, it should hopefully get merged soon.

I believe a lot of people use the Snapcrafters CI workflows, as an alternative: GitHub - snapcrafters/ci: Repository for shared CI tools and actions

2 Likes

Thank you, I really appreciate it.

I didn’t realize these existed, thanks for the tip. However, looking for equivalents of the actions we use below, I could not find any in the list of snapcrafters actions.

@bepri Just a gentle ping that this is still an issue.

Is there hope for getting that PR merged, or should we consider the action abandoned and pursue alternatives?

This was superceeded by feat: support 'pack' command by mr-cal · Pull Request #91 · canonical/action-build · GitHub

1 Like