canonical / matter-pi-gpio-commander

Matter Raspberry Pi GPIO Commander - Turn your Pi into a Matter lighting device!
Apache License 2.0
90 stars 3 forks source link

Add workflow for weekly build and publish of snap #71

Open jpm-canonical opened 3 weeks ago

jpm-canonical commented 3 weeks ago

Summary

The github workflow builds, tests and publishes the snap. Build is done in Qemu on amd64, building only for arm64. Test is done on native arm64. Publish is done on amd64. The workflow is triggered weekly to pull in latest matter sdk.

Testing Steps

Check github action output of this PR, or after it is merged the output of the weekly triggered action.

farshidtz commented 3 weeks ago

Supersedes #66

jpm-canonical commented 3 weeks ago

Test is failing with this error:

[SETUP]
[exec] ./gpio-mock.sh
[exec] rm -rf squashfs-root
[exec] unsquashfs ..//home/runner/work/matter-pi-gpio-commander/matter-pi-gpio-commander/matter-pi-gpio-commander_2.0.0_arm64.snap
stderr: Could not open ..//home/runner/work/matter-pi-gpio-commander/matter-pi-gpio-commander/matter-pi-gpio-commander_2.0.0_arm64.snap, because No such file or directory
err: exit status 1