From 1614424669e28940dffd608b2d452cf2743aab04 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 14:15:04 -0400 Subject: [PATCH] Update k32w example builds: nologs is mandatory for low-power builds --- .github/workflows/examples-k32w.yaml | 10 +++++----- scripts/build/build/targets.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/examples-k32w.yaml b/.github/workflows/examples-k32w.yaml index 4f4edba262a56d..d9142d73d72583 100644 --- a/.github/workflows/examples-k32w.yaml +++ b/.github/workflows/examples-k32w.yaml @@ -73,8 +73,8 @@ jobs: ./scripts/build/build_examples.py \ --target k32w-light \ --target k32w-light-no-ota \ - --target k32w-lock-low-power \ - --target k32w-contact-low-power \ + --target k32w-lock-low-power-nologs \ + --target k32w-contact-low-power-nologs \ --target k32w-shell \ build \ --copy-artifacts-to out/artifacts \ @@ -84,21 +84,21 @@ jobs: run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ k32w k32w0+release light \ - out/artifacts/k32w-light-release-no-ota/chip-k32w0x-light-example \ + out/artifacts/k32w-light-no-ota/chip-k32w0x-light-example \ /tmp/bloat_reports/ - name: Get lock size stats timeout-minutes: 5 run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ k32w k32w0+release lock \ - out/artifacts/k32w-lock-low-power-release/chip-k32w0x-lock-example \ + out/artifacts/k32w-lock-low-power-nologs/chip-k32w0x-lock-example \ /tmp/bloat_reports/ - name: Get contact size stats timeout-minutes: 5 run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ k32w k32w0+release contact \ - out/artifacts/k32w-contact-low-power-release/chip-k32w0x-contact-example \ + out/artifacts/k32w-contact-low-power-nologs/chip-k32w0x-contact-example \ /tmp/bloat_reports/ - name: Uploading Size Reports uses: actions/upload-artifact@v2 diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 5df211cfe6ad2c..341caf811c4c71 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -314,7 +314,7 @@ def BuildK32WTarget(): ]) target.AppendModifier(name="no-ota", disable_ota=True) - target.AppendModifier(name="low-power", low_power=True) + target.AppendModifier(name="low-power", low_power=True).OnlyIfRe("-nologs") target.AppendModifier(name="nologs", disable_logs=True) return target