blob: a5c3a75c7ecdce2f1e653c9be7e95993cfec823f [file] [log] [blame]
Gustavo Henrique Nihei38453f62021-11-03 15:00:19 -03001# SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
2# SPDX-License-Identifier: Apache-2.0
3
4# For development, trigger this on any push.
5on:
6 push:
7 branches:
8 - main
9 pull_request:
10
11name: Espressif
12
Gustavo Henrique Niheie5718552021-12-17 10:35:59 -030013concurrency:
14 group: espressif-${{ github.event.pull_request.number || github.ref }}
15 cancel-in-progress: true
16
Gustavo Henrique Nihei38453f62021-11-03 15:00:19 -030017jobs:
18 environment:
19 strategy:
20 matrix:
Almir Okato42e679d2022-01-18 00:16:58 -030021 targets: [esp32, esp32s2, esp32s3, esp32c3]
Gustavo Henrique Nihei67b73d32021-12-09 17:05:10 -030022 features:
Almir Okatobfdf9342023-01-27 16:24:00 -030023 - "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 Nihei38453f62021-11-03 15:00:19 -030032 runs-on: ubuntu-latest
33 env:
Gustavo Henrique Niheid6e98102021-12-28 14:05:52 -030034 MCUBOOT_TARGETS: ${{ matrix.targets }}
Gustavo Henrique Nihei67b73d32021-12-09 17:05:10 -030035 MCUBOOT_FEATURES: ${{ matrix.features }}
Almir Okatobfdf9342023-01-27 16:24:00 -030036 MCUBOOT_IMG_NUM: ${{ matrix.img }}
Gustavo Henrique Nihei38453f62021-11-03 15:00:19 -030037 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