Compare commits

...

6 commits

Author SHA1 Message Date
hathach
f33b09ee58
skip uploadmode since not merged yet 2021-09-29 14:46:01 +07:00
hathach
92447cbfea
try full metro esp32s2 fbqn 2021-09-29 13:45:17 +07:00
hathach
beec4b65ff
print installed core version 2021-09-29 12:27:23 +07:00
hathach
fa7c86dc81
test ci with metroesp32s2 2021-09-29 11:45:08 +07:00
hathach
9b963f433b
more timeout 2021-09-29 00:39:04 +07:00
hathach
4845cdfa8e
increase timeout to 3 mins, esp32s2 example can take long time to build 2021-09-29 00:21:34 +07:00
2 changed files with 6 additions and 5 deletions

View file

@ -6,7 +6,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
@ -16,5 +16,4 @@ jobs:
run: bash ./actions_install.sh
- name: test platforms
run: |
python3 build_platform.py uno leonardo mega2560 zero esp8266 esp32 pico_rp2040
python3 build_platform.py metroesp32s2

View file

@ -61,7 +61,7 @@ ALL_PLATFORMS={
"esp32" : ["esp32:esp32:featheresp32:FlashFreq=80", None],
"magtag" : ["esp32:esp32:adafruit_magtag29_esp32s2", "0xbfdd4eee"],
"funhouse" : ["esp32:esp32:adafruit_funhouse_esp32s2", "0xbfdd4eee"],
"metroesp32s2" : ["esp32:esp32:adafruit_metro_esp32s2", "0xbfdd4eee"],
"metroesp32s2" : ["esp32:esp32:adafruit_metro_esp32s2:CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default", "0xbfdd4eee"],
# Adafruit AVR
"trinket_3v" : ["adafruit:avr:trinket3", None],
"trinket_5v" : ["adafruit:avr:trinket5", None],
@ -168,6 +168,8 @@ def install_platform(platform):
ColorPrint.print_fail("FAILED to install "+platform)
exit(-1)
ColorPrint.print_pass(CHECK)
# print installed core version
print( os.popen('arduino-cli core list | grep {}'.format(platform)).read(), end='' )
def run_or_die(cmd, error):
print(cmd)
@ -318,7 +320,7 @@ def test_examples_in_folder(folderpath):
cmd = ['arduino-cli', 'compile', '--warnings', 'none', '--export-binaries', '--fqbn', fqbn, examplepath]
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
r = proc.wait(timeout=60)
r = proc.wait(timeout=60*5)
out = proc.stdout.read()
err = proc.stderr.read()
if r == 0 and not (err and BUILD_WALL == True):