-
-
Notifications
You must be signed in to change notification settings - Fork 98
55 lines (49 loc) · 1.48 KB
/
pr.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build firmware
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "0 1 * * 6" # Every Saturday at 1AM
jobs:
build-component:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
idf_ver: ["v4.4", "v5.0", "v5.1", "latest"]
idf_target: ["esp32"]
include:
- idf_ver: "v4.4"
idf_target: esp32s2
- idf_ver: "v4.4"
idf_target: esp32c3
- idf_ver: "v4.4"
idf_target: esp32s3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install cppcheck
run: |
sudo apt-get update
sudo apt-get install -y cppcheck
- name: Run cppcheck
run: |
cppcheck src/*.c --enable=warning --error-exitcode=1 --force
- name: esp-idf build library
uses: espressif/esp-idf-ci-action@main
with:
esp_idf_version: ${{ matrix.idf_ver }}
target: ${{ matrix.idf_target }}
path: "example/"
command: apt-get update && apt-get install -y python3-venv && idf.py build
- name: esp-idf build tests
uses: espressif/esp-idf-ci-action@main
with:
esp_idf_version: ${{ matrix.idf_ver }}
command: '/bin/bash -c " ln -s /app /opt/esp/idf/tools/unit-test-app/components/littlefs; cd /opt/esp/idf/tools/unit-test-app; idf.py -T littlefs build"'