14
14
15
15
jobs :
16
16
test :
17
- runs-on : ubuntu-18 .04
17
+ runs-on : ubuntu-20 .04
18
18
steps :
19
19
- name : Dump GitHub context
20
20
env :
@@ -35,13 +35,40 @@ jobs:
35
35
python-version : 3.8
36
36
- name : Install deps
37
37
run : |
38
+ sudo apt-get update
38
39
sudo apt-get install -y eatmydata
39
40
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64 latexmk texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
40
- pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort black awscli
41
+ pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort black awscli mypy
41
42
- name : Versions
42
43
run : |
43
44
gcc --version
44
45
python3 --version
46
+ - name : Translations
47
+ run : make check-translate
48
+ - name : New boards check
49
+ run : python3 -u ci_new_boards_check.py
50
+ working-directory : tools
51
+ - name : Duplicate USB VID/PID Check
52
+ run : python3 -u -m tools.ci_check_duplicate_usb_vid_pid
53
+ - name : Build and Validate Stubs
54
+ run : make check-stubs -j2
55
+ - uses : actions/upload-artifact@v2
56
+ with :
57
+ name : stubs
58
+ path : circuitpython-stubs*
59
+ - name : Test Documentation Build (HTML)
60
+ run : sphinx-build -E -W -b html -D version=${{ env.CP_VERSION }} -D release=${{ env.CP_VERSION }} . _build/html
61
+ - uses : actions/upload-artifact@v2
62
+ with :
63
+ name : docs
64
+ path : _build/html
65
+ - name : Test Documentation Build (LaTeX/PDF)
66
+ run : |
67
+ make latexpdf
68
+ - uses : actions/upload-artifact@v2
69
+ with :
70
+ name : docs
71
+ path : _build/latex
45
72
- name : Build mpy-cross
46
73
run : make -C mpy-cross -j2
47
74
- name : Build unix port
67
94
- name : mpy Tests
68
95
run : MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float
69
96
working-directory : tests
70
- - name : Stubs
71
- run : make stubs -j2
72
- - uses : actions/upload-artifact@v2
73
- with :
74
- name : stubs
75
- path : circuitpython-stubs*
76
- - name : Test Documentation Build (HTML)
77
- run : sphinx-build -E -W -b html -D version=${{ env.CP_VERSION }} -D release=${{ env.CP_VERSION }} . _build/html
78
- - uses : actions/upload-artifact@v2
79
- with :
80
- name : docs
81
- path : _build/html
82
- - name : Test Documentation Build (LaTeX/PDF)
83
- run : |
84
- make latexpdf
85
- - uses : actions/upload-artifact@v2
86
- with :
87
- name : docs
88
- path : _build/latex
89
- - name : Translations
90
- run : make check-translate
91
- - name : New boards check
92
- run : python3 -u ci_new_boards_check.py
93
- working-directory : tools
94
- - name : Duplicate USB VID/PID Check
95
- run : python3 -u -m tools.ci_check_duplicate_usb_vid_pid
96
97
- name : Build mpy-cross.static-raspbian
97
98
run : make -C mpy-cross -j2 -f Makefile.static-raspbian
98
99
- uses : actions/upload-artifact@v2
@@ -111,12 +112,15 @@ jobs:
111
112
with :
112
113
name : mpy-cross.static-x64-windows
113
114
path : mpy-cross/mpy-cross.static.exe
114
- - name : Upload mpy-cross builds to S3
115
+ - name : Upload stubs and mpy-cross builds to S3
115
116
run : |
116
117
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static-raspbian s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-raspbian-${{ env.CP_VERSION }} --no-progress --region us-east-1
117
118
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-amd64-linux-${{ env.CP_VERSION }} --no-progress --region us-east-1
118
119
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static.exe s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-x64-windows-${{ env.CP_VERSION }}.exe --no-progress --region us-east-1
120
+ zip -9r circuitpython-stubs.zip circuitpython-stubs
121
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs.zip s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-${{ env.CP_VERSION }}.zip --no-progress --region us-east-1
119
122
env :
123
+ AWS_PAGER : ' '
120
124
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
121
125
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
122
126
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
@@ -157,19 +161,21 @@ jobs:
157
161
run : |
158
162
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-catalina-${{ env.CP_VERSION }} --no-progress --region us-east-1
159
163
env :
164
+ AWS_PAGER : ' '
160
165
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
161
166
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
162
167
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
163
168
164
169
165
170
build-arm :
166
- runs-on : ubuntu-18 .04
171
+ runs-on : ubuntu-20 .04
167
172
needs : test
168
173
strategy :
169
174
fail-fast : false
170
175
matrix :
171
176
board :
172
177
- " 8086_commander"
178
+ - " ADM_B_NRF52840_1"
173
179
- " TG-Watch02A"
174
180
- " aloriumtech_evo_m51"
175
181
- " aramcon_badge_2019"
@@ -179,6 +185,7 @@ jobs:
179
185
- " arduino_nano_33_iot"
180
186
- " arduino_zero"
181
187
- " bast_pro_mini_m0"
188
+ - " bastble"
182
189
- " bdmicro_vina_d21"
183
190
- " bdmicro_vina_d51"
184
191
- " bless_dev_board_multi_sensor"
@@ -193,6 +200,8 @@ jobs:
193
200
- " circuitplayground_express_displayio"
194
201
- " clue_nrf52840_express"
195
202
- " cp32-m4"
203
+ - " cp_sapling_m0"
204
+ - " cp_sapling_m0_spiflash"
196
205
- " datalore_ip_m4"
197
206
- " datum_distance"
198
207
- " datum_imu"
@@ -303,6 +312,7 @@ jobs:
303
312
- " sparkfun_samd21_mini"
304
313
- " sparkfun_samd51_thing_plus"
305
314
- " spresense"
315
+ - " stackrduino_m0_pro"
306
316
- " stm32f411ce_blackpill"
307
317
- " stm32f411ve_discovery"
308
318
- " stm32f412zg_discovery"
@@ -312,7 +322,8 @@ jobs:
312
322
- " teensy40"
313
323
- " teensy41"
314
324
- " teknikio_bluebird"
315
- - " thunderpack"
325
+ - " thunderpack_v11"
326
+ - " thunderpack_v12"
316
327
- " tinkeringtech_scoutmakes_azul"
317
328
- " trellis_m4_express"
318
329
- " trinket_m0"
@@ -334,8 +345,8 @@ jobs:
334
345
run : |
335
346
sudo apt-get install -y gettext
336
347
pip install requests sh click setuptools awscli
337
- wget https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-9-2019 -q4-major-x86_64-linux.tar.bz2
338
- sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-9-2019 -q4-major-x86_64-linux.tar.bz2
348
+ wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-10-2020 -q4-major-x86_64-linux.tar.bz2
349
+ sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-10-2020 -q4-major-x86_64-linux.tar.bz2
339
350
- name : Versions
340
351
run : |
341
352
gcc --version
@@ -360,12 +371,13 @@ jobs:
360
371
- name : Upload to S3
361
372
run : " [ -z \" $AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
362
373
env :
374
+ AWS_PAGER : ' '
363
375
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
364
376
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
365
377
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
366
378
367
379
build-riscv :
368
- runs-on : ubuntu-18 .04
380
+ runs-on : ubuntu-20 .04
369
381
needs : test
370
382
strategy :
371
383
fail-fast : false
@@ -408,16 +420,18 @@ jobs:
408
420
- name : Upload to S3
409
421
run : " [ -z \" $AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
410
422
env :
423
+ AWS_PAGER : ' '
411
424
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
412
425
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
413
426
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
414
427
build-xtensa :
415
- runs-on : ubuntu-latest
428
+ runs-on : ubuntu-20.04
416
429
needs : test
417
430
strategy :
418
431
fail-fast : false
419
432
matrix :
420
433
board :
434
+ - " adafruit_magtag_2.9_grayscale"
421
435
- " adafruit_metro_esp32s2"
422
436
- " electroniccats_bastwifi"
423
437
- " espressif_kaluga_1"
@@ -501,6 +515,7 @@ jobs:
501
515
- name : Upload to S3
502
516
run : " [ -z \" $AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
503
517
env :
518
+ AWS_PAGER : ' '
504
519
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
505
520
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
506
521
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
0 commit comments