Enhance CI to use with Arduino IDE #49
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Thank you for this awesome project. As @ladyada is working on a ch32 dev board, we have been adding tinyusb support for ch32 arduino and is curretly trying to integrate your execllent
wchisp
tool as upload method in addition to existing wlinke (since not all users has wlinke).Goal
It would be great that we can directly use the artifacts from your release page with arduino IDE/CLI.
Changes
Arduino is picky and require tool's zip file must contains an single folder (screenshot below). Therefore my initial thought is making a quick change to zip folder containing binary (instead of only binaries). However, I found that ci is a bit out of date, and take the chance to make an update as well. Followig is notable chages
nightly-release
job only run if the workflow run due to schedule eventmacos-latest
is arm64 (M1) only, for x64, we must specific macos-12.Runner Image: macos-14-arm64
(not x64)I am open to all suggestion, let me know if you want to change it in any ways. Should you think this is useful and merge, please consider to make an release e.g 0.2.1 since nightly build binaries changes constantly and cannot be used directly with Arduino which requires sha256 checksum in the board index.