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.
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 thesnapcraft.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
'sdel
feature to remove thearchitecture
key so that theremote-build
service works correctly.