contrem / arduino-timer

Non-blocking library for delaying function calls
BSD 3-Clause "New" or "Revised" License
334 stars 50 forks source link

Feature/githubci #16

Closed philj404 closed 3 years ago

philj404 commented 3 years ago

FYI here is a github action configuration. It checks whether the arduino-timer library and example code will compile on various platforms.

It uses code in the adafruit/ci-arduino repository to do the build.

This pull request is definitely an enhancement. It may not be in a direction you wanted to go. If that's the case, never mind, just reject it and move on.

However if you were meaning to use continuous integration sometime and hadn't found the time to set it up, here's something that might help.

For more information, see The Well-Automated Arduino Library

Notes:

philj404 commented 3 years ago

See https://github.com/contrem/arduino-timer/issues/17 for the associated issue.

philj404 commented 3 years ago

Here are some results builds on my fork. (Let me know if you need more permissions to see this info...) See https://github.com/philj404/arduino-timer/branches for how build status is reported.
https://github.com/philj404/arduino-timer/actions lists recent github actions associated with the repository.

It looks like actions get flushed eventually, so eventually these links will stop working:

contrem commented 3 years ago

This is great, thanks for sharing. Let me know if you'd like to do any commit squashing / cleanup before merging.

Currently tracking this PR in pj/githubci

philj404 commented 3 years ago

Woo hoo! All builds passed!

I think I'm done with my cleanup -- unless you noticed something I should fix.

If you would like to squash changes, that's fine with me.

(after merging) If you want to only allow passing branch commits/builds to merge to master, you can set that up in "Settings... Branches... Branch Protection Rules" (click on 'Add rule'). It's less important if you are the only person doing a merge.

When I was working on a project with 40+ other developers we required proven-working builds before the merge. It helped keep regressions from slowing everyone else down.

philj404 commented 3 years ago

Whoops. Sorry, I was just checking if I could do the merge by closing the PR. Nope.

contrem commented 3 years ago

Merged in 9532adc30e7b08aad2df6cfb2aaf824760ae345f.