Skip to content

Commit 8cd3af4

Browse files
Add esp-build action
1 parent 538dbbd commit 8cd3af4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'build'
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
matrix:
9+
idf_ver: ["v4.1", "v4.2", "v4.3"]
10+
idf_target: ["esp32"]
11+
include:
12+
- idf_ver: "v4.2"
13+
idf_target: esp32s2
14+
# TODO: enable C3 build
15+
#- idf_ver: "v4.3"
16+
# idf_target: esp32c3
17+
runs-on: ubuntu-20.04
18+
container: espressif/idf:release-${{ matrix.idf_ver }}
19+
steps:
20+
- uses: actions/checkout@v1
21+
with:
22+
submodules: recursive
23+
- name: Build for ESP32
24+
env:
25+
IDF_TARGET: ${{ matrix.idf_target }}
26+
shell: bash
27+
run: |
28+
. ${IDF_PATH}/export.sh
29+
idf.py build

0 commit comments

Comments
 (0)