-
Notifications
You must be signed in to change notification settings - Fork 80
42 lines (34 loc) · 972 Bytes
/
build-esp.yml
File metadata and controls
42 lines (34 loc) · 972 Bytes
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
35
36
37
38
39
40
41
42
name: ESP
permissions:
contents: read
on:
push:
branches: ["main"]
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
jobs:
build:
name: Build ${{ matrix.example }} (${{ matrix.target }})
runs-on: ubuntu-24.04
container: espressif/idf:latest
strategy:
fail-fast: false
matrix:
example: [esp32-led-blink-sdk, esp32-led-strip-sdk, esp32-uart-echo]
target: [esp32c3, esp32c6, esp32p4]
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Install apt dependencies
run: apt-get -qq update && apt-get -qq -y install pkg-config
- name: Install Swift
uses: ./.github/actions/install-swift
- name: Build ${{ matrix.example }}
run: |
cd $IDF_PATH
. ./export.sh
cd -
cd ${{ matrix.example }}
idf.py set-target ${{ matrix.target }}
idf.py build