aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-09 21:13:03 +0100
committerGitHub <noreply@github.com>2023-02-09 21:13:03 +0100
commitec932961cc5596009f3179edd620bc778a1503d7 (patch)
treef28e5f55434e4c75dcc96c11ca26684cca4f1c00 /ci
parent05d3bef8364c93b205fd47398420dcd705df2714 (diff)
downloadrneovim-ec932961cc5596009f3179edd620bc778a1503d7.tar.gz
rneovim-ec932961cc5596009f3179edd620bc778a1503d7.tar.bz2
rneovim-ec932961cc5596009f3179edd620bc778a1503d7.zip
ci: inline internal caching script to Github actions (#22192)
I don't think it's possible to meaningfully abstract away caching on multiple providers, as each provider has different mechanisms on how they work.
Diffstat (limited to 'ci')
-rwxr-xr-xci/before_cache.sh17
-rwxr-xr-xci/before_script.sh9
2 files changed, 0 insertions, 26 deletions
diff --git a/ci/before_cache.sh b/ci/before_cache.sh
deleted file mode 100755
index 94c18bd2cf..0000000000
--- a/ci/before_cache.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/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
diff --git a/ci/before_script.sh b/ci/before_script.sh
index 3e8adcfb15..9797d3ae30 100755
--- a/ci/before_script.sh
+++ b/ci/before_script.sh
@@ -14,15 +14,6 @@ if test "${FUNCTIONALTEST}" = "functionaltest-lua" ; then
fi
mkdir -p "${DEPS_BUILD_DIR}"
-
-# Use cached dependencies if $CACHE_MARKER exists.
-if test -f "${CACHE_MARKER}"; then
- echo "Using third-party dependencies from cache."
- cp -a "${CACHE_NVIM_DEPS_DIR}"/. "${DEPS_BUILD_DIR}"
-fi
-
-# Even if we're using cached dependencies, run CMake and make to
-# update CMake configuration and update to newer deps versions.
cd "${DEPS_BUILD_DIR}"
echo "Configuring with '${DEPS_CMAKE_FLAGS}'."
# shellcheck disable=SC2086