summaryrefslogtreecommitdiff
path: root/.github/workflows/build_esp32s.yml
blob: 102e22c602a885520c1333ce5d18f991ab3d87e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build ESP32S

on: [pull_request, push, repository_dispatch]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        example: ['cdc_msc_freertos']

    steps:
    - name: Setup Python
      uses: actions/setup-python@v1

    - name: Install Toolchains
      run: |
        # ESP IDF
        git clone --depth 1 https://github.com/espressif/esp-idf.git $HOME/esp-idf
        cd $HOME/esp-idf
        ./install.sh

    - name: Checkout TinyUSB
      uses: actions/checkout@v2
      with:
        # Cannot do submodule checkout here since LWIP's git server cannot checkout unadventised commits (it must use tags)
        submodules: 'false'

    - name: Build
      run: |
        . $HOME/esp-idf/export.sh
        python3 tools/build_all.py ${{ matrix.example }}