modulove / A-RYTH-MATIK

6CH Eurorack trigger sequencer and euclidean Rhythm Generator with SSD1306 0.96 OLED
https://modulove.io/arythmatik/
MIT License
33 stars 12 forks source link

GitHub Actions make fw #10

Open modulove opened 4 months ago

modulove commented 4 months ago

We should finally make the move to github actions building the fw variants. The firmware needs be compiled & uploaded manually all the time which is time consuming and error prone.

awonak commented 4 months ago

I have applied this technique to my repository, here is how it works:

I'm my repository I use GitHub Actions to compile each of my firmwares with as set of 3 different flags to build binaries for each of the common Arduino Nano clones.

This action is triggered when a new tag is pushed with the semantic version pattern, like "vX.Y.Z". After the binaries are created, a new GitHub release is added and all of the firmware binaries are attached to the release.

https://github.com/awonak/HagiwoModulove/blob/main/.github/workflows/build_release.yml

The one unknown I have is how to automatically attach the new binary versions with your web based firmware uploader page. The best solution I can think of would be to update the arduino-web-uploader code to support serving binaries directly from the GitHub releases "latest" page. Otherwise they will likely need to be manually copied to the web uploader site.

modulove commented 4 months ago

I think we move to github Page and I will give it a try to make it work after the current changes went into main. This will need to wait until superbooth is over i guess.

modulove commented 4 months ago

Got this started here: https://github.com/modulove/modulove.github.io/blob/main/.github/workflows/build_release.yml The hugo page and making a beta release available for testers, will take some time still .