main.yml 1.1 KB
Newer Older
M
Me No Dev 已提交
1 2
name: ESP32 Arduino CI

3 4 5 6 7 8
on:
  push:
    branches:
    - master
    - release/*
  pull_request:
M
Me No Dev 已提交
9 10

jobs:
M
Me No Dev 已提交
11 12
  
  # Ubuntu
M
Me No Dev 已提交
13 14
  build-arduino-linux:
    name: Arduino ${{ matrix.chunk }} on ubuntu-latest
M
Me No Dev 已提交
15
    runs-on: ubuntu-latest
M
Me No Dev 已提交
16 17
    strategy:
      matrix:
M
Me No Dev 已提交
18
        chunk: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
M
Me No Dev 已提交
19 20 21
    
    steps:
    - uses: actions/checkout@v1
M
Me No Dev 已提交
22
    - name: Build Sketches
M
Me No Dev 已提交
23
      run: bash ./tools/ci/on-push.sh ${{ matrix.chunk }} 15
M
Me No Dev 已提交
24

M
Me No Dev 已提交
25 26 27 28
  # Windows and MacOS
  build-arduino-win-mac:
    name: Arduino on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
M
Me No Dev 已提交
29 30
    strategy:
      matrix:
M
Me No Dev 已提交
31
        os: [windows-latest, macOS-latest]
M
Me No Dev 已提交
32 33 34
    
    steps:
    - uses: actions/checkout@v1
M
Me No Dev 已提交
35
    - name: Build Sketches
M
Me No Dev 已提交
36
      run: bash ./tools/ci/on-push.sh
M
Me No Dev 已提交
37

M
Me No Dev 已提交
38
  # PlatformIO on Windows, Ubuntu and Mac
M
Me No Dev 已提交
39
  build-platformio:
M
Me No Dev 已提交
40 41 42 43 44
    name: PlatformIO on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macOS-latest]
M
Me No Dev 已提交
45 46 47
    
    steps:
    - uses: actions/checkout@v1
M
Me No Dev 已提交
48
    - name: Build Sketches
M
Me No Dev 已提交
49
      run: bash ./tools/ci/on-push.sh 1 1 #equal and non-zero to trigger PIO