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:
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
steps:
|
|
|
|
- name: Dump GitHub context
|
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
run: echo "$GITHUB_CONTEXT"
|
|
|
|
- name: Set up Python 3.5
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.5
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
2020-01-25 15:06:54 -05:00
|
|
|
sudo apt-get install -y eatmydata
|
|
|
|
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64
|
2019-08-15 03:07:29 -04:00
|
|
|
pip install requests sh click setuptools cpp-coveralls Sphinx sphinx-rtd-theme recommonmark sphinxcontrib-svg2pdfconverter polib pyyaml
|
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
|
|
|
python3 --version
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: CircuitPython version
|
|
|
|
run: git describe --dirty --always --tags
|
|
|
|
- name: Build mpy-cross
|
|
|
|
run: make -C mpy-cross -j2
|
|
|
|
- name: Build unix port
|
|
|
|
run: |
|
|
|
|
make -C ports/unix deplibs -j2
|
|
|
|
make -C ports/unix -j2
|
|
|
|
make -C ports/unix coverage -j2
|
|
|
|
- name: Test all
|
|
|
|
run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1
|
|
|
|
working-directory: tests
|
|
|
|
- name: Print failure info
|
|
|
|
run: |
|
|
|
|
for exp in *.exp;
|
|
|
|
do testbase=$(basename $exp .exp);
|
|
|
|
echo -e "\nFAILURE $testbase";
|
|
|
|
diff -u $testbase.exp $testbase.out;
|
|
|
|
done
|
|
|
|
working-directory: tests
|
|
|
|
if: failure()
|
|
|
|
- name: Native Tests
|
|
|
|
run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native
|
|
|
|
working-directory: tests
|
|
|
|
- name: mpy Tests
|
|
|
|
run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float
|
|
|
|
working-directory: tests
|
|
|
|
- name: Docs
|
|
|
|
run: sphinx-build -E -W -b html . _build/html
|
|
|
|
- name: Translations
|
|
|
|
run: make check-translate
|
|
|
|
- name: New boards check
|
|
|
|
run: python3 -u ci_new_boards_check.py
|
|
|
|
working-directory: tools
|
|
|
|
|
2020-01-25 15:06:54 -05:00
|
|
|
- name: Build mpy-cross.static-raspbian
|
|
|
|
run: make -C mpy-cross -j2 -f Makefile.static-raspbian
|
|
|
|
- uses: actions/upload-artifact@v1.0.0
|
|
|
|
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
|
|
|
|
- uses: actions/upload-artifact@v1.0.0
|
|
|
|
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
|
|
|
|
- uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
name: mpy-cross.static-x64-windows
|
|
|
|
path: mpy-cross/mpy-cross.static.exe
|
|
|
|
|
2020-01-25 19:49:14 -05:00
|
|
|
mpy-cross-mac:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Dump GitHub context
|
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
run: echo "$GITHUB_CONTEXT"
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
|
|
|
brew link --force gettext
|
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
|
|
|
python3 --version
|
|
|
|
msgfmt --version
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: CircuitPython version
|
|
|
|
run: git describe --dirty --always --tags
|
|
|
|
- name: Build mpy-cross
|
|
|
|
run: make -C mpy-cross -j2
|
|
|
|
- uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
name: mpy-cross-macos-catalina
|
|
|
|
path: mpy-cross/mpy-cross
|
|
|
|
|
2019-08-15 03:07:29 -04:00
|
|
|
build-arm:
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
needs: test
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
board:
|
2020-03-24 15:43:25 -04:00
|
|
|
- "8086_commander"
|
2020-03-12 20:39:42 -04:00
|
|
|
- "TG-Watch02A"
|
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"
|
|
|
|
- "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"
|
|
|
|
- "datalore_ip_m4"
|
|
|
|
- "datum_distance"
|
|
|
|
- "datum_imu"
|
|
|
|
- "datum_light"
|
|
|
|
- "datum_weather"
|
|
|
|
- "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"
|
|
|
|
- "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"
|
|
|
|
- "feather_radiofruit_zigbee"
|
2019-10-24 12:51:40 -04:00
|
|
|
- "feather_stm32f405_express"
|
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"
|
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"
|
|
|
|
- "makerdiary_nrf52840_mdk"
|
|
|
|
- "makerdiary_nrf52840_mdk_usb_dongle"
|
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"
|
|
|
|
- "metro_nrf52840_express"
|
|
|
|
- "mini_sam_m4"
|
|
|
|
- "monster_m4sk"
|
2020-01-23 11:55:17 -05:00
|
|
|
- "ndgarage_ndbit6"
|
2020-01-16 17:28:28 -05:00
|
|
|
- "ohs2020_badge"
|
2020-01-14 15:35:23 -05:00
|
|
|
- "openbook_m4"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "particle_argon"
|
|
|
|
- "particle_boron"
|
|
|
|
- "particle_xenon"
|
|
|
|
- "pca10056"
|
|
|
|
- "pca10059"
|
|
|
|
- "pewpew10"
|
2019-08-04 08:21:32 -04:00
|
|
|
- "pewpew_m4"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "pirkey_m0"
|
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"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "pygamer"
|
|
|
|
- "pygamer_advance"
|
|
|
|
- "pyportal"
|
|
|
|
- "pyportal_titano"
|
|
|
|
- "pyruler"
|
|
|
|
- "robohatmm1_m4"
|
|
|
|
- "sam32"
|
2020-01-14 16:51:27 -05:00
|
|
|
- "seeeduino_xiao"
|
2019-09-14 10:06:28 -04:00
|
|
|
- "serpente"
|
2019-11-25 11:58:00 -05:00
|
|
|
- "shirtty"
|
2019-08-15 03:07:29 -04:00
|
|
|
- "snekboard"
|
|
|
|
- "sparkfun_lumidrive"
|
2019-10-23 17:42:44 -04:00
|
|
|
- "sparkfun_nrf52840_mini"
|
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"
|
2019-10-11 06:05:47 -04:00
|
|
|
- "spresense"
|
2019-11-21 17:39:14 -05:00
|
|
|
- "stm32f411ce_blackpill"
|
2019-09-04 18:32:24 -04:00
|
|
|
- "stm32f411ve_discovery"
|
|
|
|
- "stm32f412zg_discovery"
|
2020-02-04 10:45:26 -05:00
|
|
|
- "stm32f4_discovery"
|
2019-10-14 17:30:32 -04:00
|
|
|
- "stringcar_m0_express"
|
2020-01-08 23:32:45 -05:00
|
|
|
- "teensy40"
|
2019-12-12 07:48:50 -05:00
|
|
|
- "teknikio_bluebird"
|
2020-03-22 05:41:47 -04:00
|
|
|
- "thunderpack"
|
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:
|
|
|
|
- name: Set up Python 3.5
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.5
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y gettext
|
|
|
|
pip install requests sh click setuptools awscli
|
2019-12-17 17:30:44 -05:00
|
|
|
wget https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
|
2019-11-20 10:38:17 -05:00
|
|
|
sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
|
|
|
arm-none-eabi-gcc --version
|
|
|
|
python3 --version
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: mpy-cross
|
|
|
|
run: make -C mpy-cross -j2
|
|
|
|
- name: build
|
|
|
|
run: python3 -u build_release_files.py
|
|
|
|
working-directory: tools
|
|
|
|
env:
|
|
|
|
BOARDS: ${{ matrix.board }}
|
|
|
|
- uses: actions/upload-artifact@v1.0.0
|
|
|
|
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:
|
|
|
|
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'))
|