-
Notifications
You must be signed in to change notification settings - Fork 109
67 lines (65 loc) · 2.2 KB
/
build_example.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
name: Build BSP examples
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
strategy:
matrix:
include:
- idf_ver: "latest"
parallel_count: 5
parallel_index: 1
- idf_ver: "latest"
parallel_count: 5
parallel_index: 2
- idf_ver: "latest"
parallel_count: 5
parallel_index: 3
- idf_ver: "latest"
parallel_count: 5
parallel_index: 4
- idf_ver: "latest"
parallel_count: 5
parallel_index: 5
- idf_ver: "release-v4.4"
parallel_count: 2
parallel_index: 1
- idf_ver: "release-v4.4"
parallel_count: 2
parallel_index: 2
- idf_ver: "release-v5.1"
parallel_count: 2
parallel_index: 1
- idf_ver: "release-v5.1"
parallel_count: 2
parallel_index: 2
- idf_ver: "release-v5.2"
parallel_count: 2
parallel_index: 1
- idf_ver: "release-v5.2"
parallel_count: 2
parallel_index: 2
- idf_ver: "release-v5.3"
parallel_count: 2
parallel_index: 1
- idf_ver: "release-v5.3"
parallel_count: 2
parallel_index: 2
runs-on: ubuntu-20.04
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Build ESP-BSP examples
shell: bash
env:
extra_arguments: "${{ matrix.idf_ver == 'latest' && '--default-build-targets esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c6 esp32h2 esp32p4' || '' }}"
run: |
export IDF_EXTRA_ACTIONS_PATH=${GITHUB_WORKSPACE}/examples
. ${IDF_PATH}/export.sh
pip install idf-component-manager ruamel.yaml idf-build-apps --upgrade
echo idf-build-apps extra arguments: ${{ env.extra_arguments }}
idf-build-apps find ${{ env.extra_arguments }}
idf-build-apps build --parallel-count ${{ matrix.parallel_count }} --parallel-index ${{ matrix.parallel_index }} ${{ env.extra_arguments }}