Gustavo Henrique Nihei | 38453f6 | 2021-11-03 15:00:19 -0300 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | # For development, trigger this on any push. |
| 5 | on: |
| 6 | push: |
| 7 | branches: |
| 8 | - main |
| 9 | pull_request: |
| 10 | |
| 11 | name: Espressif |
| 12 | |
Gustavo Henrique Nihei | e571855 | 2021-12-17 10:35:59 -0300 | [diff] [blame] | 13 | concurrency: |
| 14 | group: espressif-${{ github.event.pull_request.number || github.ref }} |
| 15 | cancel-in-progress: true |
| 16 | |
Gustavo Henrique Nihei | 38453f6 | 2021-11-03 15:00:19 -0300 | [diff] [blame] | 17 | jobs: |
| 18 | environment: |
| 19 | strategy: |
| 20 | matrix: |
Almir Okato | 42e679d | 2022-01-18 00:16:58 -0300 | [diff] [blame] | 21 | targets: [esp32, esp32s2, esp32s3, esp32c3] |
Gustavo Henrique Nihei | 67b73d3 | 2021-12-09 17:05:10 -0300 | [diff] [blame] | 22 | features: |
Almir Okato | bfdf934 | 2023-01-27 16:24:00 -0300 | [diff] [blame] | 23 | - "secureboot-sign-rsa2048,secureboot-sign-rsa3072,secureboot-sign-ec256,secureboot-sign-ed25519" |
| 24 | - "serialrecovery" |
| 25 | include: |
| 26 | - targets: esp32 |
| 27 | features: "multi-image,multi-boot" |
| 28 | img: "multi" |
| 29 | - targets: esp32s3 |
| 30 | features: "multi-image,multi-boot" |
| 31 | img: "multi" |
Gustavo Henrique Nihei | 38453f6 | 2021-11-03 15:00:19 -0300 | [diff] [blame] | 32 | runs-on: ubuntu-latest |
| 33 | env: |
Gustavo Henrique Nihei | d6e9810 | 2021-12-28 14:05:52 -0300 | [diff] [blame] | 34 | MCUBOOT_TARGETS: ${{ matrix.targets }} |
Gustavo Henrique Nihei | 67b73d3 | 2021-12-09 17:05:10 -0300 | [diff] [blame] | 35 | MCUBOOT_FEATURES: ${{ matrix.features }} |
Almir Okato | bfdf934 | 2023-01-27 16:24:00 -0300 | [diff] [blame] | 36 | MCUBOOT_IMG_NUM: ${{ matrix.img }} |
Gustavo Henrique Nihei | 38453f6 | 2021-11-03 15:00:19 -0300 | [diff] [blame] | 37 | steps: |
| 38 | - uses: actions/checkout@v2 |
| 39 | with: |
| 40 | fetch-depth: 0 |
| 41 | submodules: recursive |
| 42 | - name: Print the environment |
| 43 | run: | |
| 44 | uname -a |
| 45 | lscpu |
| 46 | free |
| 47 | pwd |
| 48 | - name: Signed commit check |
| 49 | if: ${{ github.event_name == 'pull_request' }} |
| 50 | run: | |
| 51 | ./ci/check-signed-off-by.sh |
| 52 | - name: Espressif install |
| 53 | run: | |
| 54 | ./ci/espressif_install.sh |
| 55 | - name: Espressif run |
| 56 | run: | |
| 57 | ./ci/espressif_run.sh |