Skip to content

Commit b2803a9

Browse files
[NXP][workflow] Create separate jobs for k32w0/k32w1
k32w0 builds use chip-build-k32w Docker image, but k32w1 builds use chip-build-nxp Docker image. Signed-off-by: marius-alex-tache <marius.tache@nxp.com>
1 parent 7f4cd42 commit b2803a9

File tree

1 file changed

+53
-9
lines changed

1 file changed

+53
-9
lines changed

.github/workflows/examples-nxp.yaml

+53-9
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ env:
2929
CHIP_NO_LOG_TIMESTAMPS: true
3030

3131
jobs:
32-
k32w:
33-
name: K32W
32+
k32w0:
33+
name: K32W0
3434

3535
env:
3636
BUILD_TYPE: gn_k32w
@@ -39,7 +39,7 @@ jobs:
3939
if: github.actor != 'restyled-io[bot]'
4040

4141
container:
42-
image: ghcr.io/project-chip/chip-build-k32w:70
42+
image: ghcr.io/project-chip/chip-build-k32w:71
4343
volumes:
4444
- "/tmp/bloat_reports:/tmp/bloat_reports"
4545
steps:
@@ -66,8 +66,6 @@ jobs:
6666
--target nxp-k32w0-freertos-contact-sensor \
6767
--target nxp-k32w0-freertos-contact-sensor-low-power \
6868
--target nxp-k32w0-freertos-contact-sensor-low-power-factory \
69-
--target nxp-k32w1-freertos-lighting \
70-
--target nxp-k32w1-freertos-contact-sensor-low-power \
7169
build \
7270
--copy-artifacts-to out/artifacts \
7371
"
@@ -77,16 +75,62 @@ jobs:
7775
nxp k32w0+release light \
7876
out/artifacts/nxp-k32w0-freertos-lighting/chip-k32w0x-light-example.elf \
7977
/tmp/bloat_reports/
80-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
81-
nxp k32w1+release light \
82-
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
83-
/tmp/bloat_reports/
8478
- name: Get contact sensor size stats
8579
run: |
8680
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
8781
nxp k32w0+release contact \
8882
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
8983
/tmp/bloat_reports/
84+
- name: Uploading Size Reports
85+
uses: ./.github/actions/upload-size-reports
86+
if: ${{ !env.ACT }}
87+
with:
88+
platform-name: K32W
89+
k32w1:
90+
name: K32W1
91+
92+
env:
93+
BUILD_TYPE: gn_k32w
94+
95+
runs-on: ubuntu-latest
96+
if: github.actor != 'restyled-io[bot]'
97+
98+
container:
99+
image: ghcr.io/project-chip/chip-build-nxp:71
100+
volumes:
101+
- "/tmp/bloat_reports:/tmp/bloat_reports"
102+
steps:
103+
- name: Checkout
104+
uses: actions/checkout@v4
105+
- name: Checkout submodules & Bootstrap
106+
uses: ./.github/actions/checkout-submodules-and-bootstrap
107+
with:
108+
platform: nxp
109+
extra-submodule-parameters: --recursive
110+
111+
- name: Set up environment for size reports
112+
uses: ./.github/actions/setup-size-reports
113+
if: ${{ !env.ACT }}
114+
with:
115+
gh-context: ${{ toJson(github) }}
116+
117+
- name: Build examples
118+
run: |
119+
scripts/run_in_build_env.sh "\
120+
./scripts/build/build_examples.py \
121+
--target nxp-k32w1-freertos-lighting \
122+
--target nxp-k32w1-freertos-contact-sensor-low-power \
123+
build \
124+
--copy-artifacts-to out/artifacts \
125+
"
126+
- name: Get lighting app size stats
127+
run: |
128+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
129+
nxp k32w1+release light \
130+
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
131+
/tmp/bloat_reports/
132+
- name: Get contact sensor size stats
133+
run: |
90134
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
91135
nxp k32w1+release contact \
92136
out/artifacts/nxp-k32w1-freertos-contact-sensor-low-power/chip-k32w1-contact-example.elf \

0 commit comments

Comments
 (0)