Skip to content

Commit 12652a9

Browse files
committed
ci: add support for esp32c3/esp32s3 example build
1 parent 243a79e commit 12652a9

File tree

1 file changed

+22
-37
lines changed

1 file changed

+22
-37
lines changed

.github/workflows/test.yml

+22-37
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
name: test
2-
3-
on:
4-
push:
5-
paths:
6-
- 'src/**'
7-
- 'examples/**'
8-
- '.github/**'
1+
name: Example build test
92

3+
on [push, pull_request]:
4+
paths:
5+
- 'src/**'
6+
- 'examples/**'
7+
- '.github/**'
108

119
jobs:
1210
esp8266-test:
13-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-20.04
1412
steps:
15-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1614

1715
- name: before_install
1816
run: |
@@ -31,31 +29,18 @@ jobs:
3129
. ./ESP8266_RTOS_SDK/export.sh
3230
cd examples
3331
idf.py build
34-
####
35-
####
36-
####
37-
esp32-test:
38-
runs-on: ubuntu-18.04
39-
steps:
40-
- uses: actions/checkout@v2
41-
42-
- name: before_install
43-
run: |
44-
sudo apt update
45-
sudo apt install -y gcc git wget make libncurses-dev flex bison python3 python3-pip python-serial ninja-build
46-
47-
- name: install
48-
run: |
49-
wget https://github.com/espressif/esp-idf/releases/download/v4.3.2/esp-idf-v4.3.2.zip
50-
unzip esp-idf-v4.3.2.zip
51-
sudo ./esp-idf-v4.3.2/install.sh
52-
53-
- name: script
54-
id: script
55-
run: |
56-
. ./esp-idf-v4.3.2/export.sh
57-
cd examples
58-
idf.py build
59-
60-
6132
33+
esp32-build:
34+
runs-on: ubuntu-20.04
35+
continue-on-error: true
36+
strategy:
37+
matrix:
38+
target-hardware: [esp32, esp32c3, esp32s3]
39+
steps:
40+
- uses: actions/checkout@v4
41+
- name: build
42+
uses: espressif/esp-idf-ci-action@v1
43+
with:
44+
esp_idf_version: v4.4.2
45+
target: ${{ matrix.target-hardware }}
46+
path: './examples/'

0 commit comments

Comments
 (0)