gtudan / co2monitor

MIT License
15 stars 7 forks source link

Add build and release workflow #1

Closed joschi closed 3 years ago

joschi commented 4 years ago

This PR adds a GitHub workflow which builds co2monitor on ARMv7 (Linux), AArch64 (Linux), and AMD64 (Linux and macOS).

If the build was triggered by pushing a tag, it will interpret the tag as version, create a GitHub release, and attach/upload the build artifacts to it.

For building the ARM-based versions of co2monitor, we're using QEMU to emulate the respective machine architecture, since the Rust cross-compiling chain doesn't quite work because of the dependencies to native libraries (libusb, libudev, libhidapi).

Examples:

joschi commented 4 years ago

@gtudan And of course thank you very much for building co2monitor! It's humming along nicely in my office to monitor the air quality. 😄