Skip to content

Commit

Permalink
[CH32] try to activate Actions CI build with 'main' branch of WCH Core
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Sep 18, 2024
1 parent 35dd406 commit 5c4fe18
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,13 @@ jobs:
arduino --pref "boardsmanager.additional.urls=https://github.com/openwch/board_manager_files/raw/main/package_ch32v_index.json" --save-prefs ;
arduino --install-boards WCH:ch32v:1.0.4 ;
arduino --board $BOARD --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/ ;
cd $GITHUB_WORKSPACE ;
fi
Expand Down Expand Up @@ -536,6 +543,6 @@ jobs:
if [[ "$BOARD" =~ "SiliconLabs:silabs:" ]]; then
arduino-cli compile -v -b "$BOARD" $PWD/software/firmware/source/SoftRF ;
fi ;
#if [[ "$BOARD" =~ "WCH:ch32v:" ]]; then
# arduino --verify --verbose-build --board $BOARD $PWD/software/firmware/source/SoftRF/SoftRF.ino ;
#fi ;
if [[ "$BOARD" =~ "WCH:ch32v:" ]]; then
arduino --verify --verbose-build --board $BOARD $PWD/software/firmware/source/SoftRF/SoftRF.ino ;
fi ;

0 comments on commit 5c4fe18

Please sign in to comment.