ch32-rs / wchisp

WCH ISP Tool in Rust
https://ch32-rs.github.io/wchisp/
GNU General Public License v2.0
166 stars 28 forks source link

Enhance CI to use with Arduino IDE #49

Closed hathach closed 2 months ago

hathach commented 2 months ago

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

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.

Screenshot from 2024-06-26 11-30-31

andelf commented 2 months ago

Thank you for your detailed explanation and your work on improving the project.

I've reviewed the artifacts, and everything works seamlessly.

please consider making a release, e.g., 0.2.1

I will do that soon!

ladyada commented 2 months ago

awesome! we are excited to have better support for this fun chip. please check out some of our updates such as adding tinyUSB device support

andelf commented 2 months ago

Published as v0.2.3.

The Actions work seamlessly.😁

hathach commented 2 months ago

glad that you find this PR useful, yeah, let make this fun chip more fun :)