automatic generation of bin/hex/uf2 files for arduino in continuous integration

Skip to first unread message

phillip torrone

Sep 15, 2021, 10:36:31 PM9/15/21
to Developers
here is an update to our arduino-ci continuous integration script for github actions to create artifacts for example sketches and attach them to both the pr and releases.

... if we have a library with an example sketch, we can compile it with arduino-cli to generate the hex/bin/uf2 file when we do our compilation test, and then saving those files for users to try out.

for example, here's our github repo for the is31fl371 driver chip:

and here is a pr we did (the pr that adds the artifacts, as it happens!):

when visiting the actions run here:

there is a "Artifacts" section at the bottom with a zip file, containing the outputs for each of our desired platforms

on releases, we do the same, auto-uploading a with the files for that release:

platforms are 'tagged' for artifact generation by creating a .platformname.generate file as shown here:

and here's the actions workflow:

we think it will be helpful for people who are writing code for deployment to multiple boards, or if you want to do quick hardware tests on pull requests without having to do the fork/branch/compile/upload/merge dance. it works particularly well with uf2 files of course, since you can just drag-n-drop them.

for questions & bug reports, please open an issue @:

pt & limor
Reply all
Reply to author
0 new messages