32 lines
795 B
YAML
32 lines
795 B
YAML
name: 'build'
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
idf_ver: ["v4.1", "v4.2", "v4.3", "v4.4"]
|
|
idf_target: ["esp32", "esp32s2", "esp32c3"]
|
|
exclude:
|
|
- idf_ver: "v4.1"
|
|
idf_target: esp32s2
|
|
- idf_ver: "v4.1"
|
|
idf_target: esp32c3
|
|
- idf_ver: "v4.2"
|
|
idf_target: esp32c3
|
|
runs-on: ubuntu-20.04
|
|
container: espressif/idf:release-${{ matrix.idf_ver }}
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
submodules: recursive
|
|
- name: Build ESP examples
|
|
env:
|
|
IDF_TARGET: ${{ matrix.idf_target }}
|
|
shell: bash
|
|
run: |
|
|
cd examples/wemos_lolin_oled/hello_world
|
|
. ${IDF_PATH}/export.sh
|
|
idf.py build
|