mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
b684730da2
will be cleaned up in IDFCI-1347
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
# pull only for most of the use cases for cache
|
|
# only set "push" policy for the jobs under this file.
|
|
# The cache would be updated when files matched specified patterns changes.
|
|
|
|
.upload_cache_template:
|
|
stage: upload_cache
|
|
image: $ESP_ENV_IMAGE
|
|
|
|
upload-pip-cache:
|
|
extends:
|
|
- .upload_cache_template
|
|
- .rules:patterns:python-cache
|
|
tags:
|
|
- $GEO
|
|
- build
|
|
cache:
|
|
key: pip-cache
|
|
paths:
|
|
- .cache/pip
|
|
policy: push
|
|
before_script: []
|
|
script:
|
|
- source tools/ci/utils.sh
|
|
- is_based_on_commits $REQUIRED_ANCESTOR_COMMITS
|
|
- source tools/ci/setup_python.sh
|
|
- rm -rf .cache/pip # clear old packages
|
|
- $IDF_PATH/tools/idf_tools.py install-python-env --features pytest,ci
|
|
parallel:
|
|
matrix:
|
|
- GEO: [ 'shiny', 'brew' ]
|
|
|
|
upload-submodules-cache:
|
|
extends:
|
|
- .upload_cache_template
|
|
- .rules:patterns:submodule
|
|
tags:
|
|
- $GEO
|
|
- build
|
|
cache:
|
|
key: submodule-cache
|
|
paths:
|
|
- .cache/submodule_archives
|
|
policy: push
|
|
before_script: []
|
|
script:
|
|
- source tools/ci/utils.sh
|
|
- is_based_on_commits $REQUIRED_ANCESTOR_COMMITS
|
|
- source tools/ci/setup_python.sh
|
|
- rm -rf .cache/submodule_archives # clear old submodule archives
|
|
- fetch_submodules
|
|
parallel:
|
|
matrix:
|
|
- GEO: [ 'shiny', 'brew' ]
|