-
Notifications
You must be signed in to change notification settings - Fork 2
118 lines (112 loc) · 3.87 KB
/
container-build-check.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: "esp32 container build check"
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
esp32s3-container-build:
name: "esp32s3: container-build"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Test building container esp32s3"
run: |
set -euxo pipefail
cd ${{ github.workspace }}/esp32s3
# config 1
docker build -f Dockerfile.esp32s3_fuseblower \
--build-arg SBV2_PRIVATE_KEY="sbv2_private_dev.pem" \
--build-arg IDF_SDKCONFIG=sdkconfig.dev-sbv2_nojtag \
.
# config 2
docker build -f Dockerfile.esp32s3_fuseblower \
--build-arg SBV2_PRIVATE_KEY="sbv2_private_dev.pem" \
--build-arg IDF_SDKCONFIG=sdkconfig.dev-sbv2_withjtag \
.
# config 3
docker build -f Dockerfile.esp32s3_fuseblower \
--build-arg SBV2_PRIVATE_KEY="sbv2_private_dev.pem" \
--build-arg IDF_SDKCONFIG=sdkconfig.dev-sbv2-fe_withjtag \
.
esp32s2-container-build-fuseblower:
name: "esp32s2: container-build - fuseblower"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Test building fuse blower container esp32s2fb"
run: |
set -euxo pipefail
cd ${{ github.workspace }}/esp32s2
# Build using a SBV2 enabling sdkconfig
docker build -f Dockerfile.esp32s2_fuseblower \
--build-arg SBV2_PRIVATE_KEY="sbv2_private_dev.pem" \
--build-arg IDF_SDKCONFIG=sdkconfig.sbv2_nojtag \
.
esp32s2-container-build-zephyr:
name: "esp32s2: container-build - zephyr/mcuboot"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Test building container esp32s2zephyr"
run: |
set -euxo pipefail
cd ${{ github.workspace }}/esp32s2
docker build -f Dockerfile.esp32s2_zephyr \
--build-arg SBV2_PRIVATE_KEY="sbv2_private_dev.pem" \
--build-arg MCUBOOT_PRIVATE_KEY="mcuboot-ecdsa-p256_private_dev.pem" \
--build-arg BOOTLOADER_CONFIG="bootloader_mcuboot_dev.conf" \
.
esp32-container-build-fuseblower:
name: "esp32: container-build - fuseblower"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Test building fuse blower container esp32s2fb"
run: |
set -euxo pipefail
cd ${{ github.workspace }}/esp32
# Build using a SBV2 enabling sdkconfig
docker build -f Dockerfile.esp32_fuseblower \
--build-arg SBV2_PRIVATE_KEY="sbv2_private_dev.pem" \
--build-arg IDF_SDKCONFIG=sdkconfig.sbv2_nojtag \
.
esp32-container-build-zephyr:
name: "esp32: container-build - zephyr/mcuboot"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Test building container esp32zephyr"
run: |
set -euxo pipefail
cd ${{ github.workspace }}/esp32
docker build -f Dockerfile.esp32_mcuboot_zephyr \
--build-arg SBV2_PRIVATE_KEY="sbv2_private_dev.pem" \
--build-arg MCUBOOT_PRIVATE_KEY="mcuboot-ecdsa-p256_private_dev.pem" \
--build-arg BOOTLOADER_CONFIG="bootloader_mcuboot_dev.conf" \
.