Hook up builds for a "minimal" all-clusters app. (#18863)
* Duplicate all-clusters-app regular files in all-clusters-minimal-app.
This commit was generated by running the following shell commands from the root of the tree:
(cd examples/all-clusters-app && find . -type d -exec mkdir -p ../all-clusters-minimal-app/{} \;)
find examples/all-clusters-app -type f -exec echo git cp {} '`echo {} | sed "s|examples/all-clusters-app|examples/all-clusters-minimal-app|"`' \; > /tmp/test.sh && sh /tmp/test.sh
and then doing an interactive rebase to squash all these into a single commit.
* Add the various symlinks for all-clusters-minimal-app.
This commit was generated by running:
(cd examples/all-clusters-app && find . -type l -print0 | xargs -0 -n1 -I name rsync -a name ../all-clusters-minimal-app/name )
* Remove sdkconfig file that should have been ignored
* Remove duplicated copies of "common" files we can share with all-clusters-app.
* Build and workflow changes to enable all-clusters-minimal app.
* Generate all-clusters-minimal files.
* Duplicate zzz_generated/all-clusters-app/zap-generated/af-gen-event.h history in zzz_generated/all-clusters-minimal-app/zap-generated history.
* Disable optional things in all-clusters-minimal app.
1. Disables clusters that are not part of Matter 1.0.
2. Disables all non-mandatory attributes, except those required by enabled
feature map bits.
3. Sets all feature maps to 0 except for clusters which require at least one
feature map bit to be set.
4. Fixes bug in codegen template that was causing the generated code to not
compile if all commands are disabled in color control.
5. Fixes various XML bits where optionality did not match spec.
6. Enables some Media Input bits in all-clusters-app, because
AcceptedCommandList used to list them (due to them being incorrectly marked
as required) and hence CI expects them to be present).
diff --git a/.github/workflows/examples-linux-imx.yaml b/.github/workflows/examples-linux-imx.yaml
index 22dd10d..300182a 100644
--- a/.github/workflows/examples-linux-imx.yaml
+++ b/.github/workflows/examples-linux-imx.yaml
@@ -69,6 +69,13 @@
"./scripts/build/build_examples.py \
--target imx-all-clusters-app build \
"
+ - name: Build all-cluster-minimal
+ timeout-minutes: 30
+ run: |
+ ./scripts/run_in_build_env.sh \
+ "./scripts/build/build_examples.py \
+ --target imx-all-clusters-minimal-app build \
+ "
- name: Build ota-provider-app
timeout-minutes: 30
run: |