Skip to content

Commit

Permalink
Update k32w example builds: nologs is mandatory for low-power builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Oct 6, 2022
1 parent 7d0ea1a commit 1614424
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1614424

Please sign in to comment.