chef.yaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. steps:
  2. - name: "ghcr.io/project-chip/chip-build-vscode:2"
  3. env:
  4. - PW_ENVIRONMENT_ROOT=/pwenv
  5. args:
  6. - "-c"
  7. - source ./scripts/bootstrap.sh
  8. id: Bootstrap
  9. entrypoint: /usr/bin/bash
  10. volumes:
  11. - name: pwenv
  12. path: /pwenv
  13. timeout: 2700s
  14. - name: "ghcr.io/project-chip/chip-build-vscode:2"
  15. env:
  16. - PW_ENVIRONMENT_ROOT=/pwenv
  17. args:
  18. - >-
  19. perl -i -pe 's/^gdbgui==/# gdbgui==/' /opt/espressif/esp-idf/requirements.txt &&
  20. ./examples/chef/chef.py --build_all --build_exclude noip
  21. id: CompileAll
  22. waitFor:
  23. - Bootstrap
  24. entrypoint: ./scripts/run_in_build_env.sh
  25. volumes:
  26. - name: pwenv
  27. path: /pwenv
  28. - name: "ghcr.io/project-chip/chip-build-vscode:2"
  29. env:
  30. - PW_ENVIRONMENT_ROOT=/pwenv
  31. args:
  32. - ./examples/chef/chef.py --build_all --build_include
  33. linux_arm64_ipv6only.*noip
  34. # Temporarely allow failure since this is known to fail:
  35. # AppMain tries to setup commissioning in general (even if all things are
  36. # disabled, ethernet assumes network commissioning cluster) and link fails
  37. # when the cluster is fully disabled
  38. # TODO: completely remove this target or fix compilation
  39. allowFailure: true
  40. id: CompileNoip
  41. waitFor:
  42. - CompileAll
  43. entrypoint: ./scripts/run_in_build_env.sh
  44. volumes:
  45. - name: pwenv
  46. path: /pwenv
  47. - name: "gcr.io/cloud-builders/docker"
  48. args:
  49. [
  50. "/workspace/examples/chef/create_docker.py",
  51. "--commit_sha",
  52. "$COMMIT_SHA",
  53. "--short_sha",
  54. "$SHORT_SHA",
  55. "--revision_id",
  56. "$REVISION_ID",
  57. "--build_id",
  58. "$BUILD_ID",
  59. "--image_name",
  60. "$_DOCKER_IMAGE_NAME",
  61. "--tar_path",
  62. "/workspace/artifacts",
  63. ]
  64. id: DockerAll
  65. entrypoint: python3
  66. waitFor:
  67. - CompileNoip
  68. logsBucket: matter-build-automation-build-logs
  69. # Global timeout for all steps
  70. timeout: 36000s
  71. queueTtl: 21600s
  72. artifacts:
  73. objects:
  74. location: "gs://matter-build-automation-artifacts/$PROJECT_ID/$COMMIT_SHA/"
  75. paths: ["/workspace/artifacts/*.tar.gz"]
  76. # Using higher CPU machines generally speeds up builds, except bootstrap is always
  77. # slow.
  78. options:
  79. machineType: "E2_HIGHCPU_32"
  80. diskSizeGb: 500