chef.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 Chef CI examples on all platforms
  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. chef_linux:
  26. name: Chef - Linux CI Examples
  27. runs-on: ubuntu-latest
  28. if: github.actor != 'restyled-io[bot]'
  29. container:
  30. image: ghcr.io/project-chip/chip-build: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: linux
  39. - name: CI Examples Linux
  40. shell: bash
  41. run: |
  42. ./scripts/run_in_build_env.sh "./examples/chef/chef.py --ci -t linux"
  43. chef_esp32:
  44. name: Chef - ESP32 CI Examples
  45. runs-on: ubuntu-latest
  46. if: github.actor != 'restyled-io[bot]'
  47. container:
  48. image: ghcr.io/project-chip/chip-build-esp32:2
  49. options: --user root
  50. steps:
  51. - name: Checkout
  52. uses: actions/checkout@v4
  53. - name: Checkout submodules
  54. uses: ./.github/actions/checkout-submodules-and-bootstrap
  55. with:
  56. platform: esp32
  57. - name: CI Examples ESP32
  58. shell: bash
  59. run: |
  60. ./scripts/run_in_build_env.sh "./examples/chef/chef.py --ci -t esp32"
  61. chef_nrfconnect:
  62. name: Chef - NRFConnect CI Examples
  63. runs-on: ubuntu-latest
  64. if: github.actor != 'restyled-io[bot]'
  65. container:
  66. image: ghcr.io/project-chip/chip-build-nrf-platform:1
  67. options: --user root
  68. steps:
  69. - name: Checkout
  70. uses: actions/checkout@v4
  71. - name: Checkout submodules & Bootstrap
  72. uses: ./.github/actions/checkout-submodules-and-bootstrap
  73. with:
  74. platform: nrfconnect
  75. - name: CI Examples NRFConnect
  76. shell: bash
  77. run: |
  78. ./scripts/run_in_build_env.sh "./examples/chef/chef.py --ci -t nrfconnect"
  79. chef_telink:
  80. name: Chef - Telink CI Examples
  81. runs-on: ubuntu-latest
  82. if: github.actor != 'restyled-io[bot]'
  83. container:
  84. image: ghcr.io/project-chip/chip-build-telink:12
  85. options: --user root
  86. steps:
  87. - name: Checkout
  88. uses: actions/checkout@v4
  89. - name: Checkout submodules & Bootstrap
  90. uses: ./.github/actions/checkout-submodules-and-bootstrap
  91. with:
  92. platform: telink
  93. - name: CI Examples Telink
  94. shell: bash
  95. run: |
  96. ./scripts/run_in_build_env.sh "./examples/chef/chef.py --ci -t telink"