-
-
Notifications
You must be signed in to change notification settings - Fork 209
103 lines (88 loc) · 3.47 KB
/
IDFBuild.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: IDFBuild
env:
REPO_URL: https://github.com/espressif/esp-idf
PROJECT_DIR: examples/Test/build_test
on:
push:
paths:
- '**.ino'
- '**.cpp'
- '**.hpp'
- '**.h'
- '**.c'
- '**IDFBuild.yml'
- 'CMakeLists.txt'
pull_request:
jobs:
build:
name: idf ${{ matrix.idf-version }}@${{ matrix.idf-board }}>esp-idf_graphicstest
runs-on: ubuntu-latest
strategy:
matrix:
esp-idf-fqbn:
#- [email protected] # esp-idf tools broken by cython/openOCD
- [email protected] # LGFX I2C not ready yet
include:
- { esp-idf-fqbn: [email protected], idf-board: esp32, idf-version: v4.1 }
#- { esp-idf-fqbn: [email protected], idf-board: esp32, idf-version: v4.2.5 }
- { esp-idf-fqbn: [email protected], idf-board: esp32, idf-version: v4.3.1 }
- { esp-idf-fqbn: [email protected], idf-board: esp32s2, idf-version: v4.4.4 }
- { esp-idf-fqbn: [email protected], idf-board: esp32s3, idf-version: v4.4.4 }
- { esp-idf-fqbn: [email protected], idf-board: esp32, idf-version: v5.0 }
- { esp-idf-fqbn: [email protected], idf-board: esp32s2, idf-version: v5.0 }
- { esp-idf-fqbn: [email protected], idf-board: esp32s3, idf-version: v5.0 }
- { esp-idf-fqbn: [email protected], idf-board: esp32, idf-version: v5.0.1 }
- { esp-idf-fqbn: [email protected], idf-board: esp32s2, idf-version: v5.0.1 }
- { esp-idf-fqbn: [email protected], idf-board: esp32s3, idf-version: v5.0.1 }
- { esp-idf-fqbn: [email protected], idf-board: esp32, idf-version: v5.1 }
- { esp-idf-fqbn: [email protected], idf-board: esp32s3, idf-version: v5.1 }
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache pip for ${{ matrix.esp-idf-fqbn }}
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.idf-version }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache espressif tools for ${{ matrix.esp-idf-fqbn }}
uses: actions/cache@v3
id: espressif
with:
path: |
~/.espressif
key: ${{ runner.os }}-espressif-${{ matrix.idf-version }}-${{ hashFiles('**/lockfiles') }}
- name: Cache esp-idf for ${{ matrix.esp-idf-fqbn }}
id: cache-idf
uses: actions/cache@v3
with:
path: ~/esp/esp-idf
key: ${{ runner.os }}-idf-${{ matrix.idf-version }}-${{ hashFiles('**/lockfiles') }}
- name: Get/Check IDF ${{ matrix.esp-idf-fqbn }}
run: |
mkdir -p ~/esp
cd ~/esp
if [ ! -d "./esp-idf/" ]; then git clone -b ${{ matrix.idf-version }} --recursive $REPO_URL esp-idf; fi
cd ~/esp/esp-idf
if [ ! -d "~/.espressif" ]; then ./install.sh; fi
- name: Build example for ${{ matrix.esp-idf-fqbn }}
run: |
source ~/esp/esp-idf/export.sh
cd ${{ env.PROJECT_DIR }}
idf.py set-target ${{ matrix.idf-board }}
idf.py build