examples-ameba.yaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 - Ameba
  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. ameba:
  26. name: Ameba
  27. env:
  28. BUILD_TYPE: ameba
  29. runs-on: ubuntu-latest
  30. if: github.actor != 'restyled-io[bot]'
  31. container:
  32. image: ghcr.io/project-chip/chip-build-ameba:9
  33. options: --user root
  34. steps:
  35. - name: Checkout
  36. uses: actions/checkout@v4
  37. - name: Checkout submodules & Bootstrap
  38. uses: ./.github/actions/checkout-submodules-and-bootstrap
  39. with:
  40. platform: ameba
  41. - name: Build example Ameba All Clusters App
  42. run: |
  43. ./scripts/run_in_build_env.sh \
  44. "./scripts/build/build_examples.py \
  45. --target ameba-amebad-all-clusters \
  46. --target ameba-amebad-all-clusters-minimal \
  47. --target ameba-amebad-light \
  48. --target ameba-amebad-pigweed \
  49. build \
  50. "