[build.snapcraft.io] Allow multiple variants of a source

We have a snap which gets a new build whenever anything it committed to that project’s GitHub, its based on CPython. We want a variant of that snap based on PyPy that also gets built whenever something is committed to project’s master.

How can we use build.snapcraft.io to use two different snapcraft.yaml files when something is committed to our project’s master ?

This is the first build yaml https://github.com/crossbario/crossbar/blob/master/snap/snapcraft.yaml
and here is the second https://github.com/crossbario/crossbar-pypy-snap/blob/master/snap/snapcraft.yaml (which currently lives out of tree)

1 Like

Is there another place to put feature requests for build.snapcraft.io or is this the correct forum for that ?

You don’t have to use build.snapcraft.io for these more complex use cases. Typically using launchpad directly is a better bet. You could sync the source from your repo to a project in lp and the build and publish from there. As you could create multiple projects there, syncing from different places, would that service your requirement?

1 Like

I haven’t tried to build a snap using Launchpad, so that’s a new territory for me. Is there a “guide” of some sort or is it mostly “jump and try yourself” in this case :wink:

Sounds like something I should do a Snapcraft Live session on :slight_smile:

4 Likes

yes please :smiley:

2 Likes