examples-efr32.yaml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # Copyright (c) 2020 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 - EFR32
  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. efr32:
  26. name: EFR32
  27. env:
  28. SILABS_BOARD: BRD4161A
  29. BUILD_TYPE: gn_efr32
  30. runs-on: ubuntu-latest
  31. if: github.actor != 'restyled-io[bot]'
  32. container:
  33. image: ghcr.io/project-chip/chip-build-efr32:8
  34. volumes:
  35. - "/tmp/bloat_reports:/tmp/bloat_reports"
  36. steps:
  37. - name: Checkout
  38. uses: actions/checkout@v4
  39. - name: Checkout submodules & Bootstrap
  40. uses: ./.github/actions/checkout-submodules-and-bootstrap
  41. with:
  42. platform: silabs_docker
  43. - name: Set up environment for size reports
  44. uses: ./.github/actions/setup-size-reports
  45. if: ${{ !env.ACT }}
  46. with:
  47. gh-context: ${{ toJson(github) }}
  48. - name: Test SLC gen
  49. timeout-minutes: 30
  50. run: |
  51. scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4187C --slc_generate --docker
  52. scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4164A --slc_generate --docker
  53. rm -rf ./out/
  54. - name: Build some BRD4187C variants (1)
  55. run: |
  56. ./scripts/run_in_build_env.sh \
  57. "./scripts/build/build_examples.py \
  58. --enable-flashbundle \
  59. --target efr32-brd4187c-thermostat-openthread_mtd \
  60. --target efr32-brd4187c-switch-shell-use_ot_coap_lib \
  61. --target efr32-brd4187c-unit-test \
  62. build \
  63. --copy-artifacts-to out/artifacts \
  64. "
  65. - name: Clean out build output
  66. run: rm -rf ./out
  67. - name: Build some BRD4187C variants (2)
  68. run: |
  69. ./scripts/run_in_build_env.sh \
  70. "./scripts/build/build_examples.py \
  71. --enable-flashbundle \
  72. --target efr32-brd4187c-light-use_ot_lib \
  73. --target efr32-brd4187c-pump \
  74. --target efr32-brd4187c-lock-shell-enable_heap_monitoring \
  75. build \
  76. --copy-artifacts-to out/artifacts \
  77. "
  78. - name: Clean out build output
  79. run: rm -rf ./out
  80. - name: Build BRD4187C variants (3)
  81. run: |
  82. ./scripts/run_in_build_env.sh \
  83. "./scripts/build/build_examples.py \
  84. --enable-flashbundle \
  85. --target efr32-brd4187c-window-covering-additional_data_advertising \
  86. --target efr32-brd4187c-light-rpc \
  87. build \
  88. --copy-artifacts-to out/artifacts \
  89. "
  90. - name: Prepare some bloat report from the previous builds
  91. run: |
  92. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
  93. efr32 BRD4187C lighting-app \
  94. out/efr32-brd4187c-light-rpc/matter-silabs-lighting-example.out \
  95. /tmp/bloat_reports/
  96. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
  97. efr32 BRD4187C window-app \
  98. out/efr32-brd4187c-window-covering-additional_data_advertising/matter-silabs-window-example.out \
  99. /tmp/bloat_reports/
  100. - name: Clean out build output
  101. run: rm -rf ./out
  102. - name: Build example EFR32+WF200 WiFi Lock app for BRD4161A
  103. run: |
  104. scripts/examples/gn_silabs_example.sh examples/lock-app/silabs out/lock_app_wifi_wf200 BRD4161A is_debug=false chip_logging=false --wifi wf200 --docker
  105. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+wf200 lock-app \
  106. out/lock_app_wifi_wf200/BRD4161A/matter-silabs-lock-example.out /tmp/bloat_reports/
  107. - name: Clean out build output
  108. run: rm -rf ./out
  109. - name: Build example EFR32+RS9116 WiFi Lighting app for BRD4161A
  110. run: |
  111. scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs out/lighting_app_wifi_rs9116 BRD4161A --wifi rs9116 --docker
  112. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+rs9116 lighting-app \
  113. out/lighting_app_wifi_rs9116/BRD4161A/matter-silabs-lighting-example.out /tmp/bloat_reports/
  114. - name: Clean out build output
  115. run: rm -rf ./out
  116. - name: Uploading Size Reports
  117. uses: ./.github/actions/upload-size-reports
  118. if: ${{ !env.ACT }}
  119. with:
  120. platform-name: EFR32