mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
bb835d7baf
* Add support for ICMPv6 RIO handling for ESP32 * Update ESP-IDF release to v4.4 for route hook support
82 lines
2.5 KiB
YAML
82 lines
2.5 KiB
YAML
stages:
|
|
- build
|
|
|
|
variables:
|
|
IDF_PATH: "$CI_PROJECT_DIR/esp-idf"
|
|
GIT_STRATEGY: fetch
|
|
GIT_SUBMODULE_STRATEGY: none
|
|
|
|
.chip_submodule_update: &chip_submodule_update
|
|
- git submodule sync --recursive
|
|
- git submodule update --recursive --init --reference /local_references/github/
|
|
|
|
.setup_idf: &setup_idf
|
|
# - cd $REPOS_PATH # IDF_PATH is set to something else already?
|
|
# using release/v4.4 branch of espressif/esp-idf github repo
|
|
- git clone --recursive --single-branch -b release/v4.4 --reference-if-able /local_references/github/ https://github.com/espressif/esp-idf.git
|
|
- cd esp-idf
|
|
- ./install.sh
|
|
- . export.sh
|
|
|
|
.setup_matter: &setup_matter
|
|
- cd $ESP_MATTER_PATH
|
|
- source connectedhomeip/connectedhomeip/scripts/bootstrap.sh
|
|
- . export.sh
|
|
|
|
.build_matter_examples: &build_matter_examples
|
|
- export MATTER_EXAMPLES_PATH=$ESP_MATTER_PATH/connectedhomeip/connectedhomeip/examples
|
|
- cd $MATTER_EXAMPLES_PATH/all-clusters-app/esp32
|
|
- idf.py build
|
|
- cd $MATTER_EXAMPLES_PATH/temperature-measurement-app/esp32
|
|
- idf.py build
|
|
- cd $MATTER_EXAMPLES_PATH/lock-app/esp32
|
|
- idf.py build
|
|
- cd $MATTER_EXAMPLES_PATH/pigweed-app/esp32
|
|
- idf.py build
|
|
- cd $MATTER_EXAMPLES_PATH/persistent-storage/esp32
|
|
- idf.py build
|
|
|
|
.build_examples: &build_examples
|
|
- cd $ESP_MATTER_PATH/examples/light
|
|
- idf.py set-target esp32
|
|
- idf.py build
|
|
- idf.py set-target esp32c3
|
|
- idf.py build
|
|
- cd $REPOS_PATH
|
|
- git clone --recursive --single-branch -b master --reference-if-able /local_references/github/ https://github.com/espressif/esp-rainmaker.git
|
|
- export ESP_RMAKER_PATH=$PWD/esp-rainmaker
|
|
- cd $ESP_MATTER_PATH/examples/rainmaker_light
|
|
- idf.py set-target esp32
|
|
- idf.py build
|
|
|
|
build_esp_matter_examples:
|
|
stage: build
|
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env:matter
|
|
tags:
|
|
- build
|
|
|
|
script:
|
|
- export ESP_MATTER_PATH=$PWD
|
|
- mkdir repos
|
|
- export REPOS_PATH=$PWD/repos
|
|
- *chip_submodule_update
|
|
- *setup_idf
|
|
- *setup_matter
|
|
- *build_examples
|
|
|
|
build_all_examples:
|
|
stage: build
|
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env:matter
|
|
tags:
|
|
- build
|
|
when: manual
|
|
script:
|
|
- export ESP_MATTER_PATH=$PWD
|
|
- mkdir repos
|
|
- export REPOS_PATH=$PWD/repos
|
|
- *chip_submodule_update
|
|
- *setup_idf
|
|
- *setup_matter
|
|
- *build_matter_examples
|
|
- *build_examples
|