snapcrafters / signal-desktop

Unofficial Signal Desktop installer for Linux
https://snapcraft.io/signal-desktop
GNU Affero General Public License v3.0
34 stars 14 forks source link

ci: compute architecture matrix automatically from snapcraft.yaml #222

Closed jnsgruk closed 9 months ago

jnsgruk commented 9 months ago

This is (I think) the last step of generalising the CI from this repo for use across snapcrafters repositories.

This change means we can restore the architectures field to the snapcraft.yaml then use it to compute the architectures matrix in CI, and use that to populate the jobs.

Just before the build, we use yq's del feature to remove the architecture key so that the remote-build service works correctly.