Skip to content

Commit

Permalink
[CH32] do Actions build together with TinyUSB stack
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Oct 25, 2024
1 parent 7ccfefc commit a7241e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
ENERGIA_IDE_VERSION: 1.8.10E23
NIM_BLE_VERSION: 1.4.1
# NIM_BLE_VERSION: esp32-c6-test
TINYUSB_VERSION: 3.4.0
BOARD: ${{ matrix.board }}
PINS_ARDUINO: pins_arduino.h

Expand Down Expand Up @@ -447,14 +448,19 @@ jobs:
arduino --board $BOARD --save-prefs ;
arduino --pref "custom_clock=CH32V30x_EVT_144MHz_HSE" --save-prefs ;
arduino --pref "custom_rtlib=CH32V30x_EVT_nanofp" --save-prefs ;
#arduino --pref "custom_usb=CH32V30x_EVT_tinyusb_usbfs" --save-prefs ;
arduino --pref "custom_usb=CH32V30x_EVT_tinyusb_usbfs" --save-prefs ;
mkdir -p $HOME/Arduino/hardware/WCH ;
cd $HOME/Arduino/hardware/WCH ;
wget https://github.com/openwch/arduino_core_ch32/archive/refs/heads/main.zip ;
unzip main.zip ;
rm main.zip ;
mv arduino_core_ch32-main ch32v ;
mv $HOME/.arduino15/packages/WCH/hardware/ch32v/1.0.4 /tmp/ ;
wget https://github.com/adafruit/Adafruit_TinyUSB_Arduino/archive/refs/tags/${TINYUSB_VERSION}.zip ;
unzip ${TINYUSB_VERSION}.zip ;
rm ${TINYUSB_VERSION}.zip ;
rmdir ch32v/libraries/Adafruit_TinyUSB_Arduino ;
mv Adafruit_TinyUSB_Arduino-${TINYUSB_VERSION} ch32v/libraries/Adafruit_TinyUSB_Arduino ;
cd $GITHUB_WORKSPACE ;
fi
Expand Down

0 comments on commit a7241e2

Please sign in to comment.