forked from espressif/esp-idf
ci: differnet cache key for different idf ver
update caches on release tags and nightly schedules
This commit is contained in:
@@ -329,11 +329,15 @@ default:
|
|||||||
cache:
|
cache:
|
||||||
# pull only for most of the use cases since it's cache dir.
|
# pull only for most of the use cases since it's cache dir.
|
||||||
# Only set "push" policy for "upload_cache" stage jobs
|
# Only set "push" policy for "upload_cache" stage jobs
|
||||||
- key: pip-cache
|
- key: pip-cache-${LATEST_GIT_TAG}
|
||||||
|
fallback_keys:
|
||||||
|
- pip-cache
|
||||||
paths:
|
paths:
|
||||||
- .cache/pip
|
- .cache/pip
|
||||||
policy: pull
|
policy: pull
|
||||||
- key: submodule-cache
|
- key: submodule-cache-${LATEST_GIT_TAG}
|
||||||
|
fallback_keys:
|
||||||
|
- submodule-cache
|
||||||
paths:
|
paths:
|
||||||
- .cache/submodule_archives
|
- .cache/submodule_archives
|
||||||
policy: pull
|
policy: pull
|
||||||
|
@@ -349,6 +349,9 @@
|
|||||||
.if-schedule: &if-schedule
|
.if-schedule: &if-schedule
|
||||||
if: '$CI_PIPELINE_SOURCE == "schedule"'
|
if: '$CI_PIPELINE_SOURCE == "schedule"'
|
||||||
|
|
||||||
|
.if-schedule-nightly: &if-schedule-nightly
|
||||||
|
if: '$CI_PIPELINE_SOURCE == "schedule" && $INCLUDE_NIGHTLY_RUN == "1"'
|
||||||
|
|
||||||
.if-schedule-test-build-system-windows: &if-schedule-test-build-system-windows
|
.if-schedule-test-build-system-windows: &if-schedule-test-build-system-windows
|
||||||
if: '$CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_BUILD_SYSTEM_TEST_WIN == "true"'
|
if: '$CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_BUILD_SYSTEM_TEST_WIN == "true"'
|
||||||
|
|
||||||
@@ -405,7 +408,8 @@
|
|||||||
### Patterns ###
|
### Patterns ###
|
||||||
.rules:patterns:python-cache:
|
.rules:patterns:python-cache:
|
||||||
rules:
|
rules:
|
||||||
- *if-schedule
|
- <<: *if-tag-release
|
||||||
|
- <<: *if-schedule-nightly
|
||||||
- <<: *if-label-upload_cache
|
- <<: *if-label-upload_cache
|
||||||
when: manual
|
when: manual
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
@@ -413,6 +417,8 @@
|
|||||||
|
|
||||||
.rules:patterns:submodule:
|
.rules:patterns:submodule:
|
||||||
rules:
|
rules:
|
||||||
|
- <<: *if-tag-release
|
||||||
|
- <<: *if-schedule-nightly
|
||||||
- <<: *if-label-upload_cache
|
- <<: *if-label-upload_cache
|
||||||
when: manual
|
when: manual
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
dependencies: []
|
dependencies: []
|
||||||
cache:
|
cache:
|
||||||
# Usually do not need submodule-cache in target_test
|
# Usually do not need submodule-cache in target_test
|
||||||
- key: pip-cache
|
- key: pip-cache-${LATEST_GIT_TAG}
|
||||||
paths:
|
paths:
|
||||||
- .cache/pip
|
- .cache/pip
|
||||||
policy: pull
|
policy: pull
|
||||||
|
@@ -15,7 +15,7 @@ upload-pip-cache:
|
|||||||
- $GEO
|
- $GEO
|
||||||
- cache
|
- cache
|
||||||
cache:
|
cache:
|
||||||
key: pip-cache
|
key: pip-cache-${LATEST_GIT_TAG}
|
||||||
paths:
|
paths:
|
||||||
- .cache/pip
|
- .cache/pip
|
||||||
policy: push
|
policy: push
|
||||||
@@ -35,7 +35,7 @@ upload-submodules-cache:
|
|||||||
- $GEO
|
- $GEO
|
||||||
- cache
|
- cache
|
||||||
cache:
|
cache:
|
||||||
key: submodule-cache
|
key: submodule-cache-${LATEST_GIT_TAG}
|
||||||
paths:
|
paths:
|
||||||
- .cache/submodule_archives
|
- .cache/submodule_archives
|
||||||
policy: push
|
policy: push
|
||||||
|
Reference in New Issue
Block a user