diff options
author | James McCoy <jamessan@jamessan.com> | 2022-02-19 20:11:11 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2022-02-19 20:36:29 -0500 |
commit | 2446b25c6b3bc945f29377e1d4fc01dd3622e06b (patch) | |
tree | 49b99fc5d4fbbf3288a6e4c404a27bbd1cb05d98 | |
parent | 0adbe58bb242e945e4684bcadb40cbb293bff59e (diff) | |
download | rneovim-2446b25c6b3bc945f29377e1d4fc01dd3622e06b.tar.gz rneovim-2446b25c6b3bc945f29377e1d4fc01dd3622e06b.tar.bz2 rneovim-2446b25c6b3bc945f29377e1d4fc01dd3622e06b.zip |
ci: only cache third-party deps if they exist
-rwxr-xr-x | ci/before_cache.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/before_cache.sh b/ci/before_cache.sh index a25221e066..bec6c37bbe 100755 --- a/ci/before_cache.sh +++ b/ci/before_cache.sh @@ -18,7 +18,7 @@ ccache -s 2>/dev/null || true find "${HOME}/.ccache" -name stats -delete # Update the third-party dependency cache only if the build was successful. -if ended_successfully; then +if ended_successfully && [ -d "${DEPS_BUILD_DIR}" ]; then # Do not cache downloads. They should not be needed with up-to-date deps. rm -rf "${DEPS_BUILD_DIR}/build/downloads" rm -rf "${CACHE_NVIM_DEPS_DIR}" |