Files
neovim/ci/before_cache.sh
dundargoc 2294210660 ci: remove fail summary (#22174)
The tests already have a summary at the end, there's no need for an
additional fail summary wrapper.
2023-02-08 18:32:17 +01:00

18 lines
459 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -o pipefail
mkdir -p "$CACHE_DIR"
# Update the third-party dependency cache only if the build was successful.
if [ -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}"
mv "${DEPS_BUILD_DIR}" "${CACHE_NVIM_DEPS_DIR}"
touch "${CACHE_MARKER}"
echo "Updated third-party dependencies."
fi