examples-qpg.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Copyright (c) 2020-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 - QPG
  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. qpg:
  26. name: QPG
  27. env:
  28. BUILD_TYPE: gn_qpg
  29. runs-on: ubuntu-latest
  30. if: github.actor != 'restyled-io[bot]'
  31. container:
  32. image: ghcr.io/project-chip/chip-build:1
  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: qpg
  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 QPG6105 example apps
  48. run: |
  49. ./scripts/run_in_build_env.sh \
  50. "./scripts/build/build_examples.py \
  51. --enable-flashbundle \
  52. --target qpg-qpg6105-lock \
  53. --target qpg-qpg6105-light \
  54. --target qpg-qpg6105-shell \
  55. --target qpg-qpg6105-persistent-storage \
  56. build \
  57. --copy-artifacts-to out/artifacts \
  58. "
  59. - name: Build Matter SDK library
  60. run: |
  61. config/qpg/chip-gn/build.sh
  62. - name: Prepare some bloat report from the previous builds
  63. run: |
  64. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
  65. qpg qpg6105+debug lighting-app \
  66. out/qpg-qpg6105-light/chip-qpg6105-lighting-example.out \
  67. /tmp/bloat_reports/
  68. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
  69. qpg qpg6105+debug lock-app \
  70. out/qpg-qpg6105-lock/chip-qpg6105-lock-example.out \
  71. /tmp/bloat_reports/
  72. - name: Uploading Size Reports
  73. uses: ./.github/actions/upload-size-reports
  74. if: ${{ !env.ACT }}
  75. with:
  76. platform-name: QPG