examples-stm32.yaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 - stm32
  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. stm32:
  26. name: stm32
  27. timeout-minutes: 60
  28. env:
  29. BUILD_TYPE: gn_stm32
  30. runs-on: ubuntu-latest
  31. if: github.actor != 'restyled-io[bot]'
  32. container:
  33. image: ghcr.io/project-chip/chip-build:1
  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: stm32
  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: Build stm32 example apps
  49. timeout-minutes: 20
  50. run: |
  51. ./scripts/run_in_build_env.sh \
  52. "./scripts/build/build_examples.py \
  53. --target stm32-STM32WB5MM-DK-light build \
  54. "
  55. - name: Uploading Size Reports
  56. uses: ./.github/actions/upload-size-reports
  57. if: ${{ !env.ACT }}
  58. with:
  59. platform-name: stm32