|
6 | 6 | pull_request: |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - build-master: |
10 | | - runs-on: ubuntu-latest |
11 | | - strategy: |
12 | | - matrix: |
13 | | - idf_target: ["esp32", "esp32s2", "esp32s3"] |
14 | | - steps: |
15 | | - - name: Checkout repo |
16 | | - uses: actions/checkout@v2 |
17 | | - with: |
18 | | - submodules: 'recursive' |
19 | | - - name: esp-idf build |
20 | | - uses: espressif/esp-idf-ci-action@main |
21 | | - with: |
22 | | - target: ${{ matrix.idf_target }} |
23 | | - path: 'examples' |
24 | | - |
25 | | - build-release-v5_0: |
| 9 | + build-examples: |
26 | 10 | name: Build for ${{ matrix.idf_target }} on ${{ matrix.idf_ver }} |
27 | 11 | runs-on: ubuntu-latest |
28 | 12 | strategy: |
29 | 13 | matrix: |
30 | | - idf_ver: ["release-v5.0"] |
31 | | - idf_target: ["esp32", "esp32s2", "esp32s3"] |
| 14 | + idf_ver: ["release-v4.1", "release-v4.2", "release-v4.3"] |
| 15 | + idf_target: ["esp32", "esp32s2"] |
| 16 | + exclude: |
| 17 | + - idf_ver: "release-v4.1" |
| 18 | + idf_target: esp32s2 # ESP32S2 support started with version 4.2 |
| 19 | + container: espressif/idf:${{ matrix.idf_ver }} |
32 | 20 | steps: |
33 | | - - name: Checkout repo |
34 | | - uses: actions/checkout@v2 |
35 | | - with: |
36 | | - submodules: 'recursive' |
37 | | - - name: esp-idf build |
38 | | - uses: espressif/esp-idf-ci-action@main |
39 | | - with: |
40 | | - esp_idf_version: ${{ matrix.idf_ver }} |
41 | | - target: ${{ matrix.idf_target }} |
42 | | - path: 'examples' |
43 | | - |
44 | | - build-release-v4_4: |
| 21 | + - uses: actions/checkout@v1 |
| 22 | + with: |
| 23 | + submodules: 'true' |
| 24 | + - name: esp-idf build |
| 25 | + env: |
| 26 | + IDF_TARGET: ${{ matrix.idf_target }} |
| 27 | + shell: bash |
| 28 | + working-directory: examples |
| 29 | + run: | |
| 30 | + . ${IDF_PATH}/export.sh |
| 31 | + idf.py build |
| 32 | + build-examples-pedantic: |
45 | 33 | name: Build for ${{ matrix.idf_target }} on ${{ matrix.idf_ver }} |
46 | 34 | runs-on: ubuntu-latest |
47 | 35 | strategy: |
48 | 36 | matrix: |
49 | | - idf_ver: ["v4.4"] |
| 37 | + idf_ver: ["release-v4.4", "release-v5.0", "release-v5.1", "latest"] |
50 | 38 | idf_target: ["esp32", "esp32s2", "esp32s3"] |
| 39 | + container: espressif/idf:${{ matrix.idf_ver }} |
51 | 40 | steps: |
52 | | - - name: Checkout repo |
53 | | - uses: actions/checkout@v2 |
54 | | - with: |
55 | | - submodules: 'recursive' |
56 | | - - name: esp-idf build |
57 | | - uses: espressif/esp-idf-ci-action@main |
58 | | - with: |
59 | | - esp_idf_version: ${{ matrix.idf_ver }} |
60 | | - target: ${{ matrix.idf_target }} |
61 | | - path: 'examples' |
62 | | - |
63 | | - build-release-v4_1: |
64 | | - runs-on: ubuntu-latest |
65 | | - steps: |
66 | | - - name: Checkout repo |
67 | | - uses: actions/checkout@v2 |
68 | | - with: |
69 | | - submodules: 'recursive' |
70 | | - - name: esp-idf build |
71 | | - uses: espressif/esp-idf-ci-action@release-v4.1 |
72 | | - with: |
73 | | - path: 'examples' |
74 | | - |
75 | | - build-release-v4_2: |
76 | | - runs-on: ubuntu-latest |
77 | | - steps: |
78 | | - - name: Checkout repo |
79 | | - uses: actions/checkout@v2 |
80 | | - with: |
81 | | - submodules: 'recursive' |
82 | | - - name: esp-idf build |
83 | | - uses: espressif/esp-idf-ci-action@release-v4.2 |
84 | | - with: |
85 | | - path: 'examples' |
86 | | - |
87 | | - build-release-v4_3: |
88 | | - runs-on: ubuntu-latest |
89 | | - steps: |
90 | | - - name: Checkout repo |
91 | | - uses: actions/checkout@v2 |
92 | | - with: |
93 | | - submodules: 'recursive' |
94 | | - - name: esp-idf build |
95 | | - uses: espressif/esp-idf-ci-action@release-v4.3 |
96 | | - with: |
97 | | - path: 'examples' |
| 41 | + - uses: actions/checkout@v1 |
| 42 | + with: |
| 43 | + submodules: 'true' |
| 44 | + - name: esp-idf build |
| 45 | + env: |
| 46 | + IDF_TARGET: ${{ matrix.idf_target }} |
| 47 | + shell: bash |
| 48 | + working-directory: examples |
| 49 | + run: | |
| 50 | + . ${IDF_PATH}/export.sh |
| 51 | + export PEDANTIC_FLAGS="-DIDF_CI_BUILD -Werror -Werror=deprecated-declarations -Werror=unused-variable -Werror=unused-but-set-variable -Werror=unused-function" |
| 52 | + export EXTRA_CFLAGS="${PEDANTIC_FLAGS} -Wstrict-prototypes" |
| 53 | + export EXTRA_CXXFLAGS="${PEDANTIC_FLAGS}" |
| 54 | + idf.py build |
0 commit comments