aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-12 15:42:59 +0200
committerGitHub <noreply@github.com>2022-08-12 15:42:59 +0200
commitb6a963bded749bb47c3b90398009da4ad1e18f68 (patch)
tree829aee7a08217abedc2acd79d03d472486b62333
parent342d18b91ec176c5e3aa6d32d439d01e6ac88ee6 (diff)
parent5b80d202712876f63050f783df1af42612acab2f (diff)
downloadrneovim-b6a963bded749bb47c3b90398009da4ad1e18f68.tar.gz
rneovim-b6a963bded749bb47c3b90398009da4ad1e18f68.tar.bz2
rneovim-b6a963bded749bb47c3b90398009da4ad1e18f68.zip
Merge pull request #19713 from lewis6991/rmccache
ci(cache): remove ccache
-rw-r--r--.github/workflows/ci.yml7
-rwxr-xr-x.github/workflows/env.sh5
-rwxr-xr-xci/before_cache.sh5
-rwxr-xr-xci/before_script.sh5
-rw-r--r--ci/common/build.sh4
5 files changed, 3 insertions, 23 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d670db5fac..74940c762f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -42,7 +42,6 @@ jobs:
autoconf \
automake \
build-essential \
- ccache \
cmake \
flake8 \
gettext \
@@ -97,7 +96,6 @@ jobs:
with:
path: |
${{ env.CACHE_NVIM_DEPS_DIR }}
- ~/.ccache
key: lint-${{ hashFiles('cmake/*', '**/CMakeLists.txt', '!cmake.deps/**CMakeLists.txt') }}-${{ github.base_ref }}
- name: Build third-party deps
@@ -190,7 +188,7 @@ jobs:
if: matrix.os == 'linux'
run: |
sudo apt-get update
- sudo apt-get install -y autoconf automake build-essential ccache cmake cpanminus cscope gcc-multilib gdb gettext language-pack-tr libtool-bin locales ninja-build pkg-config python3 python3-pip python3-setuptools unzip valgrind xclip
+ sudo apt-get install -y autoconf automake build-essential cmake cpanminus cscope gcc-multilib gdb gettext language-pack-tr libtool-bin locales ninja-build pkg-config python3 python3-pip python3-setuptools unzip valgrind xclip
- name: Install minimum required version of cmake
if: matrix.cmake == 'minimum_required'
@@ -222,7 +220,7 @@ jobs:
if: matrix.os == 'osx'
run: |
brew update --quiet
- brew install automake ccache cpanminus ninja
+ brew install automake cpanminus ninja
- name: Setup interpreter packages
run: ./ci/install.sh
@@ -232,7 +230,6 @@ jobs:
with:
path: |
${{ env.CACHE_NVIM_DEPS_DIR }}
- ~/.ccache
key: ${{ matrix.runner }}-${{ matrix.flavor }}-${{ matrix.cc }}-${{ hashFiles('cmake/*', 'cmake.deps/**', '**/CMakeLists.txt') }}-${{ github.base_ref }}
- name: Build third-party deps
diff --git a/.github/workflows/env.sh b/.github/workflows/env.sh
index e7c9d19f3a..061588da1a 100755
--- a/.github/workflows/env.sh
+++ b/.github/workflows/env.sh
@@ -8,7 +8,6 @@ $HOME/.local/bin
EOF
cat <<EOF >> "$GITHUB_ENV"
-CACHE_ENABLE=true
CI_BUILD_DIR=$GITHUB_WORKSPACE
BUILD_DIR=$GITHUB_WORKSPACE/build
DEPS_BUILD_DIR=$HOME/nvim-deps
@@ -20,10 +19,6 @@ CACHE_NVIM_DEPS_DIR=$HOME/.cache/nvim-deps
CACHE_MARKER=$HOME/.cache/nvim-deps/.ci_cache_marker
CACHE_UNCRUSTIFY=$HOME/.cache/uncrustify
UNCRUSTIFY_VERSION=uncrustify-0.75.0
-CCACHE_BASEDIR=$GITHUB_WORKSPACE
-CCACHE_COMPRESS=1
-CCACHE_SLOPPINESS=time_macros,file_macro
-CCACHE_DIR=$HOME/.ccache
EOF
DEPS_CMAKE_FLAGS=
diff --git a/ci/before_cache.sh b/ci/before_cache.sh
index bec6c37bbe..9bc9bb45e9 100755
--- a/ci/before_cache.sh
+++ b/ci/before_cache.sh
@@ -12,11 +12,6 @@ mkdir -p "${HOME}/.cache"
echo "before_cache.sh: cache size"
du -chd 1 "${HOME}/.cache" | sort -rh | head -20
-echo "before_cache.sh: ccache stats"
-ccache -s 2>/dev/null || true
-# Do not keep ccache stats (uploaded to cache otherwise; reset initially anyway).
-find "${HOME}/.ccache" -name stats -delete
-
# Update the third-party dependency cache only if the build was successful.
if ended_successfully && [ -d "${DEPS_BUILD_DIR}" ]; then
# Do not cache downloads. They should not be needed with up-to-date deps.
diff --git a/ci/before_script.sh b/ci/before_script.sh
index f7216338d4..08e0cb9103 100755
--- a/ci/before_script.sh
+++ b/ci/before_script.sh
@@ -16,11 +16,6 @@ if [[ -n "${LLVM_SYMBOLIZER}" ]] && [[ ! $(type -P "${LLVM_SYMBOLIZER}") ]]; the
exit 1
fi
-echo "before_script.sh: ccache stats (will be cleared)"
-ccache -s
-# Reset ccache stats for real results in before_cache.
-ccache --zero-stats
-
# Compile dependencies.
build_deps
diff --git a/ci/common/build.sh b/ci/common/build.sh
index f083796a28..6e7ea2c8f8 100644
--- a/ci/common/build.sh
+++ b/ci/common/build.sh
@@ -24,9 +24,7 @@ build_deps() {
mkdir -p "${DEPS_BUILD_DIR}"
# Use cached dependencies if $CACHE_MARKER exists.
- if test "${CACHE_ENABLE}" = "false" ; then
- export CCACHE_RECACHE=1
- elif test -f "${CACHE_MARKER}" ; then
+ if test -f "${CACHE_MARKER}"; then
echo "Using third-party dependencies from cache (last update: $(_stat "${CACHE_MARKER}"))."
cp -a "${CACHE_NVIM_DEPS_DIR}"/. "${DEPS_BUILD_DIR}"
fi