11name : Build CI
22
3- on : [push, pull_request, release]
3+ on :
4+ push :
5+ pull_request :
6+ release :
7+ types : [published]
8+ check_suite :
9+ types : [rerequested]
410
511jobs :
612 test :
1016 env :
1117 GITHUB_CONTEXT : ${{ toJson(github) }}
1218 run : echo "$GITHUB_CONTEXT"
13- - name : Fail if not a release publish # workaround has `on` doesn't have this filter
14- run : exit 1
15- if : github.event_name == 'release' && (github.event.action != 'published' && github.event.action != 'rerequested')
1619 - name : Set up Python 3.5
1720 uses : actions/setup-python@v1
1821 with :
4952 done
5053 working-directory : tests
5154 if : failure()
52- - name : Test threads
53- run : MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 -d thread
54- working-directory : tests
5555 - name : Native Tests
5656 run : MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native
5757 working-directory : tests
7575 board :
7676 - " arduino_mkr1300"
7777 - " arduino_mkrzero"
78+ - " arduino_nano_33_ble"
7879 - " arduino_zero"
7980 - " bast_pro_mini_m0"
8081 - " capablerobot_usbhub"
9293 - " electronut_labs_blip"
9394 - " electronut_labs_papyr"
9495 - " escornabot_makech"
95- - " feather_f405"
9696 - " feather_m0_adalogger"
9797 - " feather_m0_basic"
9898 - " feather_m0_express"
@@ -103,12 +103,14 @@ jobs:
103103 - " feather_m4_express"
104104 - " feather_nrf52840_express"
105105 - " feather_radiofruit_zigbee"
106+ - " feather_stm32f405_express"
106107 - " gemma_m0"
107108 - " grandcentral_m4_express"
108109 - " hallowing_m0_express"
109110 - " hallowing_m4_express"
110111 - " itsybitsy_m0_express"
111112 - " itsybitsy_m4_express"
113+ - " itsybitsy_nrf52840_express"
112114 - " kicksat-sprite"
113115 - " makerdiary_nrf52840_mdk"
114116 - " makerdiary_nrf52840_mdk_usb_dongle"
@@ -135,13 +137,15 @@ jobs:
135137 - " pyportal"
136138 - " pyportal_titano"
137139 - " pyruler"
138- - " robohatmm1_m0"
139140 - " robohatmm1_m4"
140141 - " sam32"
141142 - " serpente"
143+ - " shirtty"
142144 - " snekboard"
143145 - " sparkfun_lumidrive"
144146 - " sparkfun_nrf52840_mini"
147+ - " sparkfun_qwiic_micro_no_flash"
148+ - " sparkfun_qwiic_micro_with_flash"
145149 - " sparkfun_redboard_turbo"
146150 - " sparkfun_samd21_dev"
147151 - " sparkfun_samd21_mini"
@@ -154,6 +158,7 @@ jobs:
154158 - " trinket_m0_haxpress"
155159 - " uchip"
156160 - " ugame10"
161+ - " winterbloom_sol"
157162
158163 steps :
159164 - name : Set up Python 3.5
@@ -164,7 +169,8 @@ jobs:
164169 run : |
165170 sudo apt-get install -y gettext
166171 pip install requests sh click setuptools awscli
167- wget https://s3.amazonaws.com/adafruit-circuit-python/gcc-arm-embedded_7-2018q2-1~xenial1_amd64.deb && sudo dpkg -i gcc-arm-embedded*_amd64.deb
172+ wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
173+ sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
168174 - name : Versions
169175 run : |
170176 gcc --version
@@ -185,7 +191,7 @@ jobs:
185191 name : ${{ matrix.board }}
186192 path : bin/${{ matrix.board }}
187193 - name : Upload to S3
188- run : aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1
194+ run : " [ -z \" $AWS_ACCESS_KEY_ID \" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
189195 env :
190196 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
191197 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -194,7 +200,7 @@ jobs:
194200 run : |
195201 pip install uritemplate
196202 - name : Upload to Release
197- run : python3 -u upload_release_files.py
203+ run : " [ -z \" $ADABOT_GITHUB_ACCESS_TOKEN \" ] || python3 -u upload_release_files.py"
198204 working-directory : tools
199205 env :
200206 UPLOAD_URL : ${{ github.event.release.upload_url }}
0 commit comments