examples-k32w.yaml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Copyright (c) 2021 Project CHIP Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. name: Build example - K32W with SE051
  15. on:
  16. push:
  17. pull_request:
  18. merge_group:
  19. concurrency:
  20. group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
  21. cancel-in-progress: true
  22. env:
  23. CHIP_NO_LOG_TIMESTAMPS: true
  24. jobs:
  25. k32w:
  26. name: K32W
  27. env:
  28. BUILD_TYPE: gn_k32w
  29. runs-on: ubuntu-latest
  30. if: github.actor != 'restyled-io[bot]'
  31. container:
  32. image: ghcr.io/project-chip/chip-build-k32w:5
  33. volumes:
  34. - "/tmp/bloat_reports:/tmp/bloat_reports"
  35. steps:
  36. - name: Checkout
  37. uses: actions/checkout@v4
  38. - name: Checkout submodules & Bootstrap
  39. uses: ./.github/actions/checkout-submodules-and-bootstrap
  40. with:
  41. platform: k32w0
  42. - name: Set up environment for size reports
  43. uses: ./.github/actions/setup-size-reports
  44. if: ${{ !env.ACT }}
  45. with:
  46. gh-context: ${{ toJson(github) }}
  47. - name: Build examples
  48. run: |
  49. scripts/run_in_build_env.sh "\
  50. ./scripts/build/build_examples.py \
  51. --target k32w-light-crypto-platform-tokenizer \
  52. --target k32w-lock-crypto-platform-tokenizer \
  53. --target k32w-lock-crypto-platform-low-power-nologs \
  54. --target k32w-contact-crypto-platform-tokenizer \
  55. --target k32w-contact-crypto-platform-low-power-nologs \
  56. --target k32w-shell-crypto-platform \
  57. build \
  58. --copy-artifacts-to out/artifacts \
  59. "
  60. - name: Get light size stats
  61. run: |
  62. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
  63. k32w k32w0+release light \
  64. out/artifacts/k32w-light-crypto-platform-tokenizer/chip-k32w0x-light-example \
  65. /tmp/bloat_reports/
  66. - name: Get lock size stats
  67. run: |
  68. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
  69. k32w k32w0+release lock \
  70. out/artifacts/k32w-lock-crypto-platform-tokenizer/chip-k32w0x-lock-example \
  71. /tmp/bloat_reports/
  72. - name: Get contact size stats
  73. run: |
  74. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
  75. k32w k32w0+release contact \
  76. out/artifacts/k32w-contact-crypto-platform-tokenizer/chip-k32w0x-contact-example \
  77. /tmp/bloat_reports/
  78. - name: Uploading Size Reports
  79. uses: ./.github/actions/upload-size-reports
  80. if: ${{ !env.ACT }}
  81. with:
  82. platform-name: K32W