examples-linux-arm.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 - Linux ARM
  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. arm_crosscompile:
  26. name: Linux ARM Cross compile
  27. runs-on: ubuntu-latest
  28. if: github.actor != 'restyled-io[bot]'
  29. container:
  30. image: ghcr.io/project-chip/chip-build-crosscompile:1
  31. volumes:
  32. - "/tmp/bloat_reports:/tmp/bloat_reports"
  33. steps:
  34. - name: Checkout
  35. uses: actions/checkout@v4
  36. - name: Checkout submodules & Bootstrap
  37. uses: ./.github/actions/checkout-submodules-and-bootstrap
  38. with:
  39. platform: linux
  40. - name: Set up environment for size reports
  41. uses: ./.github/actions/setup-size-reports
  42. if: ${{ !env.ACT }}
  43. with:
  44. gh-context: ${{ toJson(github) }}
  45. - name: Build Some samples
  46. run: |
  47. ./scripts/run_in_build_env.sh \
  48. "./scripts/build/build_examples.py \
  49. --target linux-arm64-chip-cert-clang \
  50. --target linux-arm64-all-clusters-clang \
  51. --target linux-arm64-chip-tool-ipv6only-clang \
  52. --target linux-arm64-lock-clang \
  53. --target linux-arm64-minmdns-clang \
  54. --target linux-arm64-light-rpc-ipv6only-clang \
  55. --target linux-arm64-thermostat-no-ble-clang \
  56. build \
  57. "
  58. - name: Bloat report - chip-tool
  59. run: |
  60. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
  61. linux arm64 chip-tool-ipv6only \
  62. out/linux-arm64-chip-tool-ipv6only-clang/chip-tool \
  63. /tmp/bloat_reports/
  64. - name: Bloat report - thermostat
  65. run: |
  66. .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
  67. linux arm64 thermostat-no-ble \
  68. out/linux-arm64-thermostat-no-ble-clang/thermostat-app \
  69. /tmp/bloat_reports/
  70. - name: Uploading Size Reports
  71. uses: ./.github/actions/upload-size-reports
  72. if: ${{ !env.ACT }}
  73. with:
  74. platform-name: Linux