arduino-pico/tests/build-tinyusb.sh
Ha Thach 3160fde679
Support native USB as host (#1910)
* add a new usbstack menu to use native usb as host

* update tinyusb library to 2.3.0

* skip Host native example in ci
2023-12-25 11:36:07 -08:00

39 lines
841 B
Bash
Executable file

#!/usr/bin/env bash
cache_dir=$(mktemp -d)
source "$TRAVIS_BUILD_DIR"/tests/common.sh
install_arduino nodebug
# Replace the skip function to only build TinyUSB tests
function skip_ino()
{
local ino=$1
local skiplist=""
echo $ino | grep -q Adafruit_TinyUSB_Arduino
if [ $? -eq 0 ]; then
# Add items to the following list with "\n" netween them to skip running. No spaces, tabs, etc. allowed
read -d '' skiplist << EOL || true
/mouse_external_flash/
/hid_keyboard/
/msc_external_flash/
/msc_external_flash_sdcard/
/msc_internal_flash_samd/
/msc_sd/
/msc_sdfat/
/midi_pizza_box_dj/
/msc_esp32_file_browser/
/DualRole/
/Host/
EOL
echo $ino | grep -q -F "$skiplist"
echo $(( 1 - $? ))
else
echo 1
fi
}
build_sketches_with_arduino 1 0 "--usbstack tinyusb"
rm -rf "$cache_dir"