esp-idf/.gitlab/ci/upload_cache.yml

51 wiersze
1.2 KiB
YAML
Czysty Zwykły widok Historia

2022-07-12 08:48:54 +00:00
# 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
2022-07-12 08:48:54 +00:00
upload-pip-cache:
extends:
- .upload_cache_template
- .before_script:minimal
- .rules:upload-python-cache
2022-07-12 08:48:54 +00:00
tags:
- $GEO
- cache
cache:
key: pip-cache-${LATEST_GIT_TAG}
paths:
- .cache/pip
policy: push
script:
- rm -rf .cache/pip # clear old packages
- bash install.sh --enable-ci --enable-pytest
2022-07-12 08:48:54 +00:00
parallel:
matrix:
- GEO: [ 'shiny', 'brew' ]
2022-07-12 08:48:54 +00:00
upload-submodules-cache:
extends:
- .upload_cache_template
- .before_script:minimal
- .rules:upload-submodule-cache
tags:
2022-07-12 08:48:54 +00:00
- $GEO
- cache
2022-07-12 08:48:54 +00:00
cache:
key: submodule-cache-${LATEST_GIT_TAG}
2022-07-12 08:48:54 +00:00
paths:
- .cache/submodule_archives
policy: push
script:
# use the default gitlab server
- unset LOCAL_GITLAB_HTTPS_HOST
2022-07-12 08:48:54 +00:00
- rm -rf .cache/submodule_archives # clear old submodule archives
- add_gitlab_ssh_keys
2022-07-12 08:48:54 +00:00
- fetch_submodules
parallel:
matrix:
- GEO: [ 'shiny', 'brew' ]