change ci to matrix build

This commit is contained in:
hathach
2021-01-19 12:19:47 +07:00
parent eab7e687de
commit 72160554dc
2 changed files with 44 additions and 11 deletions
+41 -6
View File
@@ -1,20 +1,55 @@
name: Build
on:
push:
pull_request:
push:
repository_dispatch:
release:
types: [published]
types:
- created
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
# Adafruit Boards
- 'circuitplayground_nrf52840'
- 'clue_nrf52840'
- 'feather_nrf52832'
- 'feather_nrf52840_express'
- 'feather_nrf52840_sense'
- 'itsybitsy_nrf52840_express'
- 'metro_nrf52840_express'
# Alphabetical order
- 'ADM_B_NRF52840_1'
- 'ae_bl652_bo'
- 'aramcon_badge_2019'
- 'arcade_feather_nrf52840_express'
- 'arduino_nano_33_ble'
- 'bast_ble'
- 'bluemicro_nrf52840'
- 'electronut_labs_papyr'
- 'ikigaisense_vita'
- 'mdk_nrf52840_dongle'
- 'nice_nano'
- 'nrf52840_m2'
- 'ohs2020_badge'
- 'particle_argon'
- 'particle_boron'
- 'particle_xenon'
- 'pca10056'
- 'pca10059'
- 'pca10100'
- 'pitaya_go'
- 'raytac_mdbt50q_rx'
- 'waveshare_nrf52840_eval'
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
# 3.9 has issue with intelhex https://github.com/python-intelhex/intelhex/issues/45
python-version: '3.8'
- name: Setup Node.js
uses: actions/setup-node@v1
@@ -34,7 +69,7 @@ jobs:
echo `echo $HOME/opt/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/*/.content/bin` >> $GITHUB_PATH
- name: Build
run: python3 tools/build_all.py
run: make BOARD=${{ matrix.board }}
- name: Upload Release Asset
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')