I have a raspberry pi with ubuntu core 18. With --target-arch not working, I have been using build.snapcraft.io to build my snap from my git repo, which I can then install on my RPI via sudo snap install…
This is fine, except it takes approximately 8 minutes for an armhf snap to build. So every time I make a change, I have to wait 8 minutes to be able to install and test it.
The reason I need to be able to test this on a pi and not my local multipass vm is because I’m creating a snap that uses the gpio pins.
Ubuntu Core won’t allow snapcraft to be installed because of confinement, and I’m not interested in hacking the confinement stuff because I want to be able to test the snap as it would be in a production ubuntu core environment.
I have considered building an arm emulating vm on qemu that I could install snapcraft on for compilation, but that is just so much to learn and understand - I don’t want to get into it.
Is there an easy solution to getting an arm vm running on my mac for this compilation purpose?
Should I just buy a whole separate arm machine that I can install Ubuntu Server on, just to compile an arm snap?