examples-asr.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Copyright (c) 2023 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 - ASR
  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. asr:
  26. name: ASR
  27. runs-on: ubuntu-latest
  28. if: github.actor != 'restyled-io[bot]'
  29. container:
  30. image: ghcr.io/project-chip/chip-build-asr:1
  31. options: --user root
  32. steps:
  33. - name: Checkout
  34. uses: actions/checkout@v4
  35. - name: Checkout submodules & Bootstrap
  36. uses: ./.github/actions/checkout-submodules-and-bootstrap
  37. with:
  38. platform: asr
  39. - name: Build all ASR582X examples
  40. run: |
  41. ./scripts/run_in_build_env.sh \
  42. "./scripts/build/build_examples.py \
  43. --target asr-asr582x-all-clusters \
  44. --target asr-asr582x-all-clusters-minimal \
  45. --target asr-asr582x-lighting-ota \
  46. --target asr-asr582x-light-switch-shell \
  47. --target asr-asr582x-lock-no_logging \
  48. --target asr-asr582x-ota-requestor \
  49. --target asr-asr582x-bridge-factory \
  50. --target asr-asr582x-temperature-measurement-rotating_id \
  51. --target asr-asr582x-thermostat-rio \
  52. --target asr-asr582x-dishwasher \
  53. --target asr-asr582x-refrigerator \
  54. build \
  55. "