Add automated build of examples

This commit is contained in:
Tomas Rezucha 2021-08-11 21:31:12 +02:00
parent 568dce244a
commit 7d9527b6e1
2 changed files with 30 additions and 1 deletions

29
.github/workflows/build_examples.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: 'build'
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
idf_ver: ["v4.1", "v4.2", "v4.3"]
idf_target: ["esp32"]
include:
- idf_ver: "v4.2"
idf_target: esp32s2
- idf_ver: "v4.3"
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

2
.gitmodules vendored
View file

@ -1,3 +1,3 @@
[submodule "examples/common_components/lvgl"] [submodule "examples/common_components/lvgl"]
path = examples/common_components/lvgl path = examples/common_components/lvgl
url = git@github.com:lvgl/lvgl.git url = https://github.com/lvgl/lvgl.git