release_artifacts.yaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 release artifacts
  15. on:
  16. workflow_dispatch:
  17. inputs:
  18. releaseTag:
  19. description: Release Tag
  20. required: true
  21. env:
  22. CHIP_NO_LOG_TIMESTAMPS: true
  23. jobs:
  24. esp32:
  25. name: ESP32
  26. env:
  27. BUILD_DIRECTORY: examples/all-clusters-app/esp32/build
  28. runs-on: ubuntu-latest
  29. container:
  30. image: ghcr.io/project-chip/chip-build-esp32:2
  31. steps:
  32. - name: Checkout
  33. uses: actions/checkout@v4
  34. with:
  35. ref: "${{ github.event.inputs.releaseTag }}"
  36. - name: Bootstrap Cache
  37. uses: ./.github/actions/bootstrap-cache
  38. - name: Bootstrap
  39. uses: ./.github/actions/bootstrap
  40. - name: Upload Bootstrap Logs
  41. uses: ./.github/actions/upload-bootstrap-logs
  42. - name: Build
  43. run: scripts/examples/esp_example.sh all-clusters-app
  44. - name: Upload artifact
  45. run: |
  46. scripts/helpers/upload_release_asset.py \
  47. --github-repository project-chip/connectedhomeip \
  48. --github-api-token "${{ secrets.GITHUB_TOKEN }}" \
  49. --release-tag "${{ github.event.inputs.releaseTag }}" \
  50. --bundle-files $BUILD_DIRECTORY/chip-all-clusters-app.flashbundle.txt \
  51. --working-directory $BUILD_DIRECTORY \
  52. --bundle-name esp32-chip-all-clusters-app
  53. efr32:
  54. name: EFR32
  55. env:
  56. SILABS_BOARD: BRD4161A
  57. BUILD_DIRECTORY: out/lock_app_debug/BRD4161A
  58. runs-on: ubuntu-latest
  59. container:
  60. image: ghcr.io/project-chip/chip-build-efr32:1
  61. steps:
  62. - name: Checkout
  63. uses: actions/checkout@v4
  64. with:
  65. ref: "${{ github.event.inputs.releaseTag }}"
  66. - name: Bootstrap Cache
  67. uses: ./.github/actions/bootstrap-cache
  68. - name: Bootstrap
  69. uses: ./.github/actions/bootstrap
  70. - name: Upload Bootstrap Logs
  71. uses: ./.github/actions/upload-bootstrap-logs
  72. - name: Build example EFR32 Lock App
  73. run: scripts/examples/gn_silabs_example.sh examples/lock-app/efr32/
  74. out/lock_app_debug $SILABS_BOARD
  75. - name: Upload artifact
  76. run: |
  77. scripts/helpers/upload_release_asset.py \
  78. --github-repository project-chip/connectedhomeip \
  79. --github-api-token "${{ secrets.GITHUB_TOKEN }}" \
  80. --release-tag "${{ github.event.inputs.releaseTag }}" \
  81. --bundle-files $BUILD_DIRECTORY/lock_app.flashbundle.txt \
  82. --working-directory $BUILD_DIRECTORY \
  83. --bundle-name efr32-$SILABS_BOARD-chip-lock-example