2020-06-03 18:40:05 -04:00
|
|
|
# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2019-08-15 03:07:29 -04:00
|
|
|
name: Build CI
|
|
|
|
|
2019-10-14 23:16:59 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
check_suite:
|
|
|
|
types: [rerequested]
|
2019-08-15 03:07:29 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2020-11-16 17:03:29 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2019-08-15 03:07:29 -04:00
|
|
|
steps:
|
|
|
|
- name: Dump GitHub context
|
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
run: echo "$GITHUB_CONTEXT"
|
2020-06-14 19:54:05 -04:00
|
|
|
- uses: actions/checkout@v2.2.0
|
2020-03-23 09:40:20 -04:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: 0
|
|
|
|
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
|
|
|
- name: CircuitPython version
|
2020-07-09 15:13:48 -04:00
|
|
|
run: |
|
|
|
|
git describe --dirty --tags
|
2020-10-08 14:58:45 -04:00
|
|
|
echo >>$GITHUB_ENV CP_VERSION=$(git describe --dirty --tags)
|
2020-04-01 17:13:19 -04:00
|
|
|
- name: Set up Python 3.8
|
2019-08-15 03:07:29 -04:00
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
2020-04-01 17:13:19 -04:00
|
|
|
python-version: 3.8
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Install deps
|
|
|
|
run: |
|
2020-12-11 08:34:40 -05:00
|
|
|
sudo apt-get update
|
2020-01-25 15:06:54 -05:00
|
|
|
sudo apt-get install -y eatmydata
|
2021-05-05 14:24:08 -04:00
|
|
|
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64 latexmk texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra gcc-aarch64-linux-gnu
|
2021-03-19 18:22:23 -04:00
|
|
|
pip install -r requirements-dev.txt
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
|
|
|
python3 --version
|
2020-12-26 02:24:36 -05:00
|
|
|
- name: New boards check
|
|
|
|
run: python3 -u ci_new_boards_check.py
|
|
|
|
working-directory: tools
|
|
|
|
- name: Duplicate USB VID/PID Check
|
|
|
|
run: python3 -u -m tools.ci_check_duplicate_usb_vid_pid
|
|
|
|
- name: Build and Validate Stubs
|
|
|
|
run: make check-stubs -j2
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: stubs
|
|
|
|
path: circuitpython-stubs*
|
|
|
|
- name: Test Documentation Build (HTML)
|
|
|
|
run: sphinx-build -E -W -b html -D version=${{ env.CP_VERSION }} -D release=${{ env.CP_VERSION }} . _build/html
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: docs
|
|
|
|
path: _build/html
|
|
|
|
- name: Test Documentation Build (LaTeX/PDF)
|
|
|
|
run: |
|
|
|
|
make latexpdf
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: docs
|
|
|
|
path: _build/latex
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Build mpy-cross
|
|
|
|
run: make -C mpy-cross -j2
|
|
|
|
- name: Build unix port
|
|
|
|
run: |
|
2021-05-04 14:40:55 -04:00
|
|
|
make -C ports/unix VARIANT=coverage -j2
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Test all
|
2021-05-11 20:31:27 -04:00
|
|
|
run: MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests.py -j1
|
2019-08-15 03:07:29 -04:00
|
|
|
working-directory: tests
|
|
|
|
- name: Native Tests
|
2021-05-11 20:31:27 -04:00
|
|
|
run: MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests.py -j1 --emit native
|
2019-08-15 03:07:29 -04:00
|
|
|
working-directory: tests
|
|
|
|
- name: mpy Tests
|
2021-05-11 20:31:27 -04:00
|
|
|
run: MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests.py -j1 --mpy-cross-flags='-mcache-lookup-bc' --via-mpy -d basics float micropython
|
2021-05-04 14:40:55 -04:00
|
|
|
working-directory: tests
|
|
|
|
- name: Native mpy Tests
|
2021-05-11 20:31:27 -04:00
|
|
|
run: MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests.py -j1 --mpy-cross-flags='-mcache-lookup-bc' --via-mpy --emit native -d basics float micropython
|
2019-08-15 03:07:29 -04:00
|
|
|
working-directory: tests
|
2021-05-05 14:24:08 -04:00
|
|
|
- name: Build mpy-cross.static-aarch64
|
|
|
|
run: make -C mpy-cross -j2 -f Makefile.static-aarch64
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: mpy-cross.static-aarch64
|
|
|
|
path: mpy-cross/mpy-cross.static-aarch64
|
2020-01-25 15:06:54 -05:00
|
|
|
- name: Build mpy-cross.static-raspbian
|
|
|
|
run: make -C mpy-cross -j2 -f Makefile.static-raspbian
|
2020-07-29 09:08:36 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-01-25 15:06:54 -05:00
|
|
|
with:
|
|
|
|
name: mpy-cross.static-raspbian
|
|
|
|
path: mpy-cross/mpy-cross.static-raspbian
|
|
|
|
- name: Build mpy-cross.static
|
|
|
|
run: make -C mpy-cross -j2 -f Makefile.static
|
2020-07-29 09:08:36 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-01-25 15:06:54 -05:00
|
|
|
with:
|
|
|
|
name: mpy-cross.static-amd64-linux
|
|
|
|
path: mpy-cross/mpy-cross.static
|
|
|
|
- name: Build mpy-cross.static-mingw
|
|
|
|
run: make -C mpy-cross -j2 -f Makefile.static-mingw
|
2020-07-29 09:08:36 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-01-25 15:06:54 -05:00
|
|
|
with:
|
|
|
|
name: mpy-cross.static-x64-windows
|
|
|
|
path: mpy-cross/mpy-cross.static.exe
|
2020-10-24 08:26:01 -04:00
|
|
|
- name: Upload stubs and mpy-cross builds to S3
|
2020-07-28 18:17:05 -04:00
|
|
|
run: |
|
2021-05-05 14:24:08 -04:00
|
|
|
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static-aarch64 s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-aarch64-${{ env.CP_VERSION }} --no-progress --region us-east-1
|
2020-07-29 09:08:36 -04:00
|
|
|
[ -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
|
|
|
|
[ -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
|
|
|
|
[ -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
|
2020-10-31 21:13:51 -04:00
|
|
|
zip -9r circuitpython-stubs.zip circuitpython-stubs
|
2020-10-28 18:48:12 -04:00
|
|
|
[ -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
|
2020-07-28 18:17:05 -04:00
|
|
|
env:
|
2020-11-17 08:37:07 -05:00
|
|
|
AWS_PAGER: ''
|
2020-07-28 18:17:05 -04:00
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
2020-07-29 10:35:58 -04:00
|
|
|
if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
|
2020-07-28 18:17:05 -04:00
|
|
|
|
2020-01-25 15:06:54 -05:00
|
|
|
|
2020-01-25 19:49:14 -05:00
|
|
|
mpy-cross-mac:
|
2020-04-24 10:08:55 -04:00
|
|
|
runs-on: macos-10.15
|
2020-01-25 19:49:14 -05:00
|
|
|
steps:
|
|
|
|
- name: Dump GitHub context
|
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
run: echo "$GITHUB_CONTEXT"
|
2020-06-14 19:54:05 -04:00
|
|
|
- uses: actions/checkout@v2.2.0
|
2020-01-25 19:49:14 -05:00
|
|
|
with:
|
|
|
|
submodules: true
|
2020-03-23 09:40:20 -04:00
|
|
|
fetch-depth: 0
|
|
|
|
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
2020-01-25 19:49:14 -05:00
|
|
|
- name: CircuitPython version
|
2020-07-28 18:17:05 -04:00
|
|
|
run: |
|
|
|
|
git describe --dirty --tags
|
2020-10-08 14:58:45 -04:00
|
|
|
echo >>$GITHUB_ENV CP_VERSION=$(git describe --dirty --tags)
|
2021-03-22 19:15:55 -04:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
brew install gettext
|
|
|
|
echo >>$GITHUB_PATH /usr/local/opt/gettext/bin
|
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
|
|
|
python3 --version
|
|
|
|
msgfmt --version
|
2020-01-25 19:49:14 -05:00
|
|
|
- name: Build mpy-cross
|
|
|
|
run: make -C mpy-cross -j2
|
2020-07-29 09:08:36 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-01-25 19:49:14 -05:00
|
|
|
with:
|
|
|
|
name: mpy-cross-macos-catalina
|
|
|
|
path: mpy-cross/mpy-cross
|
2020-07-28 18:17:05 -04:00
|
|
|
- name: Upload mpy-cross build to S3
|
2020-07-29 09:08:36 -04:00
|
|
|
run: |
|
|
|
|
[ -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
|
2020-07-28 18:17:05 -04:00
|
|
|
env:
|
2020-11-17 08:37:07 -05:00
|
|
|
AWS_PAGER: ''
|
2020-07-28 18:17:05 -04:00
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
2020-07-29 10:35:58 -04:00
|
|
|
if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
|
2020-07-28 18:17:05 -04:00
|
|
|
|
2020-01-25 19:49:14 -05:00
|
|
|
|
2019-08-15 03:07:29 -04:00
|
|
|
build-arm:
|
2020-11-16 17:03:29 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2019-08-15 03:07:29 -04:00
|
|
|
needs: test
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
board:
|
2020-03-24 15:43:25 -04:00
|
|
|
- "8086_commander"
|
2020-10-28 17:08:10 -04:00
|
|
|
- "ADM_B_NRF52840_1"
|
2021-01-13 23:51:34 -05:00
|
|
|
- "TG-Watch"
|
2021-01-20 19:47:18 -05:00
|
|
|
- "adafruit_feather_rp2040"
|
2021-03-21 19:11:15 -04:00
|
|
|
- "adafruit_itsybitsy_rp2040"
|
2021-04-11 17:45:37 -04:00
|
|
|
- "adafruit_neokey_trinkey_m0"
|
2021-04-11 18:39:14 -04:00
|
|
|
- "adafruit_proxlight_trinkey_m0"
|
2021-05-11 22:03:05 -04:00
|
|
|
- "adafruit_qt2040_trinkey"
|
2021-03-22 18:29:43 -04:00
|
|
|
- "adafruit_qtpy_rp2040"
|
2021-04-11 17:45:37 -04:00
|
|
|
- "adafruit_rotary_trinkey_m0"
|
2021-04-11 17:49:57 -04:00
|
|
|
- "adafruit_slide_trinkey_m0"
|
2020-05-20 22:11:06 -04:00
|
|
|
- "aloriumtech_evo_m51"
|
2021-04-19 13:40:49 -04:00
|
|
|
- "aramcon2_badge"
|
2020-01-06 17:31:37 -05:00
|
|
|
- "aramcon_badge_2019"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "arduino_mkr1300"
|
|
|
|
- "arduino_mkrzero"
|
2019-10-26 12:58:45 -04:00
|
|
|
- "arduino_nano_33_ble"
|
2020-02-19 04:22:57 -05:00
|
|
|
- "arduino_nano_33_iot"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "arduino_zero"
|
|
|
|
- "bast_pro_mini_m0"
|
2020-11-13 10:22:42 -05:00
|
|
|
- "bastble"
|
2020-09-16 16:27:24 -04:00
|
|
|
- "bdmicro_vina_d21"
|
2020-10-13 17:08:30 -04:00
|
|
|
- "bdmicro_vina_d51"
|
2021-04-07 09:11:30 -04:00
|
|
|
- "bdmicro_vina_d51_pcb7"
|
2020-07-08 22:26:45 -04:00
|
|
|
- "bless_dev_board_multi_sensor"
|
2020-07-28 14:23:01 -04:00
|
|
|
- "blm_badge"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "capablerobot_usbhub"
|
|
|
|
- "catwan_usbstick"
|
2020-02-05 16:13:05 -05:00
|
|
|
- "circuitbrains_basic_m0"
|
|
|
|
- "circuitbrains_deluxe_m4"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "circuitplayground_bluefruit"
|
|
|
|
- "circuitplayground_express"
|
|
|
|
- "circuitplayground_express_crickit"
|
2019-09-17 13:40:07 -04:00
|
|
|
- "circuitplayground_express_displayio"
|
2019-12-30 17:10:42 -05:00
|
|
|
- "clue_nrf52840_express"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "cp32-m4"
|
2020-11-20 16:26:33 -05:00
|
|
|
- "cp_sapling_m0"
|
2021-04-27 18:54:13 -04:00
|
|
|
- "cp_sapling_m0_revb"
|
2020-11-23 19:23:22 -05:00
|
|
|
- "cp_sapling_m0_spiflash"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "datalore_ip_m4"
|
|
|
|
- "datum_distance"
|
|
|
|
- "datum_imu"
|
|
|
|
- "datum_light"
|
|
|
|
- "datum_weather"
|
2021-02-10 06:55:08 -05:00
|
|
|
- "dynalora_usb"
|
2020-10-15 06:39:14 -04:00
|
|
|
- "dynossat_edu_eps"
|
|
|
|
- "dynossat_edu_obc"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "electronut_labs_blip"
|
|
|
|
- "electronut_labs_papyr"
|
|
|
|
- "escornabot_makech"
|
2020-02-06 11:25:07 -05:00
|
|
|
- "espruino_pico"
|
2020-02-06 12:19:19 -05:00
|
|
|
- "espruino_wifi"
|
2020-02-03 13:54:24 -05:00
|
|
|
- "feather_bluefruit_sense"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "feather_m0_adalogger"
|
|
|
|
- "feather_m0_basic"
|
|
|
|
- "feather_m0_express"
|
|
|
|
- "feather_m0_express_crickit"
|
|
|
|
- "feather_m0_rfm69"
|
|
|
|
- "feather_m0_rfm9x"
|
|
|
|
- "feather_m0_supersized"
|
2020-09-08 15:08:52 -04:00
|
|
|
- "feather_m4_can"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "feather_m4_express"
|
2020-02-19 15:58:10 -05:00
|
|
|
- "feather_m7_1011"
|
2019-11-02 11:52:26 -04:00
|
|
|
- "feather_mimxrt1011"
|
|
|
|
- "feather_mimxrt1062"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "feather_nrf52840_express"
|
2019-10-24 12:51:40 -04:00
|
|
|
- "feather_stm32f405_express"
|
2021-03-08 07:31:10 -05:00
|
|
|
- "fluff_m0"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "gemma_m0"
|
|
|
|
- "grandcentral_m4_express"
|
|
|
|
- "hallowing_m0_express"
|
2019-08-29 17:38:16 -04:00
|
|
|
- "hallowing_m4_express"
|
2020-05-25 02:59:36 -04:00
|
|
|
- "hiibot_bluefi"
|
2021-04-02 20:38:37 -04:00
|
|
|
- "huntercat_nfc"
|
2020-07-23 16:39:59 -04:00
|
|
|
- "ikigaisense_vita"
|
2019-11-02 11:52:26 -04:00
|
|
|
- "imxrt1010_evk"
|
2020-01-08 23:32:45 -05:00
|
|
|
- "imxrt1020_evk"
|
|
|
|
- "imxrt1060_evk"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "itsybitsy_m0_express"
|
|
|
|
- "itsybitsy_m4_express"
|
2019-10-25 11:15:34 -04:00
|
|
|
- "itsybitsy_nrf52840_express"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "kicksat-sprite"
|
2020-06-19 11:56:20 -04:00
|
|
|
- "loc_ber_m4_base_board"
|
2020-07-09 06:04:26 -04:00
|
|
|
- "makerdiary_m60_keyboard"
|
|
|
|
- "makerdiary_nrf52840_m2_devkit"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "makerdiary_nrf52840_mdk"
|
|
|
|
- "makerdiary_nrf52840_mdk_usb_dongle"
|
2020-08-31 23:56:38 -04:00
|
|
|
- "matrixportal_m4"
|
2020-01-04 13:57:38 -05:00
|
|
|
- "meowbit_v121"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "meowmeow"
|
|
|
|
- "metro_m0_express"
|
|
|
|
- "metro_m4_airlift_lite"
|
|
|
|
- "metro_m4_express"
|
2020-09-28 22:21:17 -04:00
|
|
|
- "metro_m7_1011"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "metro_nrf52840_express"
|
|
|
|
- "mini_sam_m4"
|
|
|
|
- "monster_m4sk"
|
2020-01-23 11:55:17 -05:00
|
|
|
- "ndgarage_ndbit6"
|
2020-07-01 15:58:07 -04:00
|
|
|
- "ndgarage_ndbit6_v2"
|
2021-01-12 12:55:02 -05:00
|
|
|
- "neopixel_trinkey_m0"
|
2020-04-09 18:00:42 -04:00
|
|
|
- "nfc_copy_cat"
|
2020-06-05 20:58:54 -04:00
|
|
|
- "nice_nano"
|
2020-04-20 12:55:27 -04:00
|
|
|
- "nucleo_f746zg"
|
2020-04-06 19:13:55 -04:00
|
|
|
- "nucleo_f767zi"
|
2020-04-01 13:02:05 -04:00
|
|
|
- "nucleo_h743zi_2"
|
2020-01-16 17:28:28 -05:00
|
|
|
- "ohs2020_badge"
|
2020-01-14 15:35:23 -05:00
|
|
|
- "openbook_m4"
|
2020-04-29 15:14:02 -04:00
|
|
|
- "openmv_h7"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "particle_argon"
|
|
|
|
- "particle_boron"
|
|
|
|
- "particle_xenon"
|
|
|
|
- "pca10056"
|
|
|
|
- "pca10059"
|
2020-05-02 08:30:03 -04:00
|
|
|
- "pca10100"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "pewpew10"
|
2019-08-04 08:21:32 -04:00
|
|
|
- "pewpew_m4"
|
2020-08-11 15:51:11 -04:00
|
|
|
- "picoplanet"
|
2021-02-19 13:27:23 -05:00
|
|
|
- "pimoroni_keybow2040"
|
2021-04-14 18:09:10 -04:00
|
|
|
- "pimoroni_picolipo_16mb"
|
|
|
|
- "pimoroni_picolipo_4mb"
|
2021-02-19 13:27:23 -05:00
|
|
|
- "pimoroni_picosystem"
|
|
|
|
- "pimoroni_tiny2040"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "pirkey_m0"
|
2020-04-30 10:31:06 -04:00
|
|
|
- "pitaya_go"
|
2019-11-21 18:24:10 -05:00
|
|
|
- "pyb_nano_v2"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "pybadge"
|
|
|
|
- "pybadge_airlift"
|
2019-09-30 14:13:54 -04:00
|
|
|
- "pyboard_v11"
|
2020-02-10 12:35:15 -05:00
|
|
|
- "pycubed"
|
2020-04-07 21:17:25 -04:00
|
|
|
- "pycubed_mram"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "pygamer"
|
|
|
|
- "pygamer_advance"
|
|
|
|
- "pyportal"
|
|
|
|
- "pyportal_titano"
|
|
|
|
- "pyruler"
|
2020-09-12 19:58:27 -04:00
|
|
|
- "qtpy_m0"
|
2020-09-26 12:43:46 -04:00
|
|
|
- "qtpy_m0_haxpress"
|
2021-01-20 19:47:18 -05:00
|
|
|
- "raspberry_pi_pico"
|
2020-07-07 14:01:21 -04:00
|
|
|
- "raytac_mdbt50q-db-40"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "robohatmm1_m4"
|
|
|
|
- "sam32"
|
2020-06-18 15:16:57 -04:00
|
|
|
- "same54_xplained"
|
2020-06-29 04:22:41 -04:00
|
|
|
- "seeeduino_wio_terminal"
|
2020-06-29 21:51:44 -04:00
|
|
|
- "seeeduino_xiao"
|
2021-03-12 11:57:55 -05:00
|
|
|
- "sensebox_mcu"
|
2019-09-14 10:06:28 -04:00
|
|
|
- "serpente"
|
2019-11-25 11:58:00 -05:00
|
|
|
- "shirtty"
|
2021-01-30 21:17:20 -05:00
|
|
|
- "silicognition-m4-shim"
|
2020-04-29 10:33:34 -04:00
|
|
|
- "simmel"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "snekboard"
|
|
|
|
- "sparkfun_lumidrive"
|
2021-04-17 10:56:04 -04:00
|
|
|
- "sparkfun_micromod_rp2040"
|
2021-03-07 01:25:31 -05:00
|
|
|
- "sparkfun_nrf52840_micromod"
|
2019-10-23 17:42:44 -04:00
|
|
|
- "sparkfun_nrf52840_mini"
|
2021-03-15 23:19:51 -04:00
|
|
|
- "sparkfun_pro_micro_rp2040"
|
2019-10-23 17:22:46 -04:00
|
|
|
- "sparkfun_qwiic_micro_no_flash"
|
|
|
|
- "sparkfun_qwiic_micro_with_flash"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "sparkfun_redboard_turbo"
|
|
|
|
- "sparkfun_samd21_dev"
|
|
|
|
- "sparkfun_samd21_mini"
|
2019-09-13 13:28:30 -04:00
|
|
|
- "sparkfun_samd51_thing_plus"
|
2021-03-16 13:47:10 -04:00
|
|
|
- "sparkfun_thing_plus_rp2040"
|
2019-10-11 06:05:47 -04:00
|
|
|
- "spresense"
|
2020-12-17 04:14:49 -05:00
|
|
|
- "stackrduino_m0_pro"
|
2019-11-21 17:39:14 -05:00
|
|
|
- "stm32f411ce_blackpill"
|
2021-01-19 11:32:41 -05:00
|
|
|
- "stm32f411ce_blackpill_with_flash"
|
2019-09-04 18:32:24 -04:00
|
|
|
- "stm32f411ve_discovery"
|
|
|
|
- "stm32f412zg_discovery"
|
2020-02-04 10:45:26 -05:00
|
|
|
- "stm32f4_discovery"
|
2020-04-27 23:34:42 -04:00
|
|
|
- "stm32f746g_discovery"
|
2019-10-14 17:30:32 -04:00
|
|
|
- "stringcar_m0_express"
|
2020-01-08 23:32:45 -05:00
|
|
|
- "teensy40"
|
2020-05-11 16:58:58 -04:00
|
|
|
- "teensy41"
|
2019-12-12 07:48:50 -05:00
|
|
|
- "teknikio_bluebird"
|
2020-11-22 04:31:41 -05:00
|
|
|
- "thunderpack_v11"
|
|
|
|
- "thunderpack_v12"
|
2020-07-15 21:58:40 -04:00
|
|
|
- "tinkeringtech_scoutmakes_azul"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "trellis_m4_express"
|
|
|
|
- "trinket_m0"
|
|
|
|
- "trinket_m0_haxpress"
|
2020-03-13 17:58:39 -04:00
|
|
|
- "uartlogger2"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "uchip"
|
|
|
|
- "ugame10"
|
2020-03-18 19:40:29 -04:00
|
|
|
- "winterbloom_big_honking_button"
|
2019-10-29 17:10:16 -04:00
|
|
|
- "winterbloom_sol"
|
2019-11-14 06:34:08 -05:00
|
|
|
- "xinabox_cc03"
|
|
|
|
- "xinabox_cs11"
|
2019-08-15 03:07:29 -04:00
|
|
|
|
|
|
|
steps:
|
2020-04-01 17:13:19 -04:00
|
|
|
- name: Set up Python 3.8
|
2019-08-15 03:07:29 -04:00
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
2020-04-01 17:13:19 -04:00
|
|
|
python-version: 3.8
|
2021-03-22 19:15:55 -04:00
|
|
|
- uses: actions/checkout@v2.2.0
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: 0
|
|
|
|
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Install deps
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y gettext
|
2021-03-19 18:22:23 -04:00
|
|
|
pip install -r requirements-dev.txt
|
2020-12-14 15:41:17 -05:00
|
|
|
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
|
2020-12-14 15:55:31 -05:00
|
|
|
sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
|
2020-03-30 22:53:58 -04:00
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
|
|
|
arm-none-eabi-gcc --version
|
|
|
|
python3 --version
|
|
|
|
- name: mpy-cross
|
|
|
|
run: make -C mpy-cross -j2
|
2021-04-13 18:55:50 -04:00
|
|
|
- name: Setup build failure matcher
|
|
|
|
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
|
2020-03-30 22:53:58 -04:00
|
|
|
- name: build
|
|
|
|
run: python3 -u build_release_files.py
|
|
|
|
working-directory: tools
|
|
|
|
env:
|
|
|
|
BOARDS: ${{ matrix.board }}
|
2020-07-29 09:08:36 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-03-30 22:53:58 -04:00
|
|
|
with:
|
|
|
|
name: ${{ matrix.board }}
|
|
|
|
path: bin/${{ matrix.board }}
|
|
|
|
- name: Upload to S3
|
|
|
|
run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
|
|
|
|
env:
|
2020-11-17 08:37:07 -05:00
|
|
|
AWS_PAGER: ''
|
2020-03-30 22:53:58 -04:00
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
|
|
|
|
|
|
|
|
build-riscv:
|
2020-11-16 17:03:29 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2020-03-30 22:53:58 -04:00
|
|
|
needs: test
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
board:
|
|
|
|
- "fomu"
|
|
|
|
|
|
|
|
steps:
|
2020-04-01 17:13:19 -04:00
|
|
|
- name: Set up Python 3.8
|
2020-03-30 22:53:58 -04:00
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
2020-04-01 17:13:19 -04:00
|
|
|
python-version: 3.8
|
2021-03-22 19:15:55 -04:00
|
|
|
- uses: actions/checkout@v2.2.0
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: 0
|
|
|
|
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
2020-03-30 22:53:58 -04:00
|
|
|
- name: Install deps
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y gettext
|
|
|
|
pip install requests sh click setuptools awscli
|
2020-03-30 22:05:31 -04:00
|
|
|
wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-centos6.tar.gz
|
|
|
|
sudo tar -C /usr --strip-components=1 -xaf riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-centos6.tar.gz
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
2020-03-30 22:05:31 -04:00
|
|
|
riscv64-unknown-elf-gcc --version
|
2019-08-15 03:07:29 -04:00
|
|
|
python3 --version
|
|
|
|
- name: mpy-cross
|
|
|
|
run: make -C mpy-cross -j2
|
2021-04-13 18:55:50 -04:00
|
|
|
- name: Setup build failure matcher
|
|
|
|
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: build
|
|
|
|
run: python3 -u build_release_files.py
|
|
|
|
working-directory: tools
|
|
|
|
env:
|
|
|
|
BOARDS: ${{ matrix.board }}
|
2020-07-29 09:08:36 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
2019-08-15 03:07:29 -04:00
|
|
|
with:
|
|
|
|
name: ${{ matrix.board }}
|
|
|
|
path: bin/${{ matrix.board }}
|
|
|
|
- name: Upload to S3
|
2019-11-17 22:18:25 -05:00
|
|
|
run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
|
2019-08-15 03:07:29 -04:00
|
|
|
env:
|
2020-11-17 08:37:07 -05:00
|
|
|
AWS_PAGER: ''
|
2019-08-15 03:07:29 -04:00
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
|
2020-04-17 19:23:28 -04:00
|
|
|
build-xtensa:
|
2020-11-17 10:01:50 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2020-04-17 19:23:28 -04:00
|
|
|
needs: test
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
board:
|
2021-01-09 12:22:53 -05:00
|
|
|
- "adafruit_feather_esp32s2_nopsram"
|
2021-01-09 22:36:54 -05:00
|
|
|
- "adafruit_feather_esp32s2_tftback_nopsram"
|
2021-03-08 18:55:05 -05:00
|
|
|
- "adafruit_funhouse"
|
2020-11-09 18:03:22 -05:00
|
|
|
- "adafruit_magtag_2.9_grayscale"
|
2020-09-30 15:59:56 -04:00
|
|
|
- "adafruit_metro_esp32s2"
|
2021-03-30 05:01:08 -04:00
|
|
|
- "artisense_rd00"
|
2021-04-19 09:07:32 -04:00
|
|
|
- "atmegazero_esp32s2"
|
2020-08-02 01:42:36 -04:00
|
|
|
- "electroniccats_bastwifi"
|
2020-08-28 19:08:24 -04:00
|
|
|
- "espressif_kaluga_1"
|
2020-04-17 19:23:28 -04:00
|
|
|
- "espressif_saola_1_wroom"
|
|
|
|
- "espressif_saola_1_wrover"
|
2021-03-09 11:58:02 -05:00
|
|
|
- "franzininho_wifi_wroom"
|
2021-03-06 16:33:24 -05:00
|
|
|
- "franzininho_wifi_wrover"
|
2021-01-06 16:58:30 -05:00
|
|
|
- "lilygo_ttgo_t8_s2_st7789"
|
2020-08-26 09:00:16 -04:00
|
|
|
- "microdev_micro_s2"
|
2020-09-16 08:59:35 -04:00
|
|
|
- "muselab_nanoesp32_s2"
|
2020-10-10 17:33:52 -04:00
|
|
|
- "targett_module_clip_wroom"
|
2020-10-10 17:11:44 -04:00
|
|
|
- "targett_module_clip_wrover"
|
2020-06-29 19:34:37 -04:00
|
|
|
- "unexpectedmaker_feathers2"
|
2020-09-22 15:20:10 -04:00
|
|
|
- "unexpectedmaker_feathers2_prerelease"
|
2021-02-21 22:41:34 -05:00
|
|
|
- "unexpectedmaker_tinys2"
|
2020-04-17 19:23:28 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Set up Python 3.8
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
2020-06-14 19:54:05 -04:00
|
|
|
- uses: actions/checkout@v2.2.0
|
2020-04-17 19:23:28 -04:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: 0
|
|
|
|
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
|
|
|
- name: CircuitPython version
|
|
|
|
run: git describe --dirty --tags
|
2021-01-29 12:36:27 -05:00
|
|
|
- uses: actions/cache@v2
|
2020-04-17 19:23:28 -04:00
|
|
|
name: Fetch IDF tool cache
|
|
|
|
id: idf-cache
|
|
|
|
with:
|
|
|
|
path: ${{ github.workspace }}/.idf_tools
|
2021-05-06 15:10:45 -04:00
|
|
|
key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/esp32s2/esp-idf/HEAD') }}-20210506
|
2020-08-30 21:51:04 -04:00
|
|
|
- name: Clone IDF submodules
|
|
|
|
run: |
|
|
|
|
(cd $IDF_PATH && git submodule update --init)
|
|
|
|
env:
|
|
|
|
IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf
|
2020-04-17 19:23:28 -04:00
|
|
|
- name: Install IDF tools
|
|
|
|
run: |
|
|
|
|
$IDF_PATH/tools/idf_tools.py --non-interactive install required
|
|
|
|
$IDF_PATH/tools/idf_tools.py --non-interactive install cmake
|
|
|
|
$IDF_PATH/tools/idf_tools.py --non-interactive install-python-env
|
|
|
|
rm -rf $IDF_TOOLS_PATH/dist
|
|
|
|
env:
|
|
|
|
IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf
|
|
|
|
IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
|
|
|
|
- name: Install CircuitPython deps
|
|
|
|
run: |
|
|
|
|
source $IDF_PATH/export.sh
|
2021-03-19 18:22:23 -04:00
|
|
|
pip install -r requirements-dev.txt
|
2020-04-17 19:23:28 -04:00
|
|
|
sudo apt-get install -y gettext ninja-build
|
|
|
|
env:
|
|
|
|
IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf
|
|
|
|
IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
|
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
source $IDF_PATH/export.sh
|
|
|
|
gcc --version
|
|
|
|
xtensa-esp32s2-elf-gcc --version
|
|
|
|
python3 --version
|
|
|
|
ninja --version
|
|
|
|
cmake --version
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf
|
|
|
|
IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
|
|
|
|
- name: mpy-cross
|
|
|
|
run: make -C mpy-cross -j2
|
2021-04-13 18:55:50 -04:00
|
|
|
- name: Setup build failure matcher
|
|
|
|
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
|
2020-04-17 19:23:28 -04:00
|
|
|
- name: build
|
|
|
|
run: |
|
|
|
|
source $IDF_PATH/export.sh
|
|
|
|
python3 -u build_release_files.py
|
|
|
|
working-directory: tools
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf
|
|
|
|
IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
|
|
|
|
BOARDS: ${{ matrix.board }}
|
2020-07-29 09:08:36 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-04-17 19:23:28 -04:00
|
|
|
with:
|
|
|
|
name: ${{ matrix.board }}
|
|
|
|
path: bin/${{ matrix.board }}
|
|
|
|
- name: Upload to S3
|
|
|
|
run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
|
|
|
|
env:
|
2020-11-17 08:37:07 -05:00
|
|
|
AWS_PAGER: ''
|
2020-04-17 19:23:28 -04:00
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
|