2019-08-20 14:32:47 +02:00
|
|
|
name: ESP32 Arduino CI
|
|
|
|
|
2019-08-21 00:56:05 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release/*
|
|
|
|
pull_request:
|
2019-08-20 14:32:47 +02:00
|
|
|
|
|
|
|
jobs:
|
2019-09-30 11:10:48 +02:00
|
|
|
|
|
|
|
# Ubuntu
|
2019-09-30 01:01:29 +02:00
|
|
|
build-arduino-linux:
|
|
|
|
name: Arduino ${{ matrix.chunk }} on ubuntu-latest
|
2019-08-20 14:32:47 +02:00
|
|
|
runs-on: ubuntu-latest
|
2019-09-30 01:01:29 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-09-30 11:10:48 +02:00
|
|
|
chunk: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
|
2019-08-20 14:32:47 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-01-25 14:26:16 +01:00
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
2019-09-30 01:01:29 +02:00
|
|
|
- name: Build Sketches
|
2019-10-01 09:44:04 +02:00
|
|
|
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15
|
2019-08-20 14:32:47 +02:00
|
|
|
|
2019-09-30 11:10:48 +02:00
|
|
|
# Windows and MacOS
|
|
|
|
build-arduino-win-mac:
|
|
|
|
name: Arduino on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
2019-09-30 01:01:29 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-09-30 11:10:48 +02:00
|
|
|
os: [windows-latest, macOS-latest]
|
2019-08-20 14:32:47 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-01-25 14:26:16 +01:00
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
2019-09-30 01:01:29 +02:00
|
|
|
- name: Build Sketches
|
2019-10-01 09:44:04 +02:00
|
|
|
run: bash ./.github/scripts/on-push.sh
|
2019-08-20 14:32:47 +02:00
|
|
|
|
2019-09-30 11:10:48 +02:00
|
|
|
# PlatformIO on Windows, Ubuntu and Mac
|
2019-08-20 14:32:47 +02:00
|
|
|
build-platformio:
|
2019-09-30 01:01:29 +02:00
|
|
|
name: PlatformIO on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
2019-08-20 14:32:47 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-01-25 14:26:16 +01:00
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
2019-09-30 01:01:29 +02:00
|
|
|
- name: Build Sketches
|
2019-10-01 09:44:04 +02:00
|
|
|
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
|