arduino-esp32/.github/workflows/push.yml

59 lines
1.3 KiB
YAML
Raw Normal View History

2019-08-20 14:32:47 +02:00
name: ESP32 Arduino CI
on:
push:
branches:
- master
- release/*
pull_request:
2019-08-20 14:32:47 +02:00
jobs:
# 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:
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
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15
2019-08-20 14:32:47 +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:
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
run: bash ./.github/scripts/on-push.sh
2019-08-20 14:32:47 +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
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO