From b6ffdd9ca52b719fdf55b6bb8729b73b3b123064 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 24 Nov 2026 00:36:48 +0900 Subject: [PATCH] Fix CI for recent runner images - Build Vim 7.4 and 8.0 with flags that recent GCC needs to accept the old sources. - Install coverage < 5 with covimerage. covimerage writes the JSON data format, which coverage 5 cannot read ("file is not a database"). --- .github/workflows/test.yml | 4 +++- scripts/install-vim.sh | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4ab95d8..11490eeb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,7 +57,9 @@ jobs: - name: Install Covimerage run: | - python -m pip install -q --user covimerage + # covimerage writes the JSON data format of coverage 4, while + # coverage 5 expects SQLite. + python -m pip install -q --user covimerage "coverage<5" python -m pip freeze - name: Compile js and py diff --git a/scripts/install-vim.sh b/scripts/install-vim.sh index f3a57c1b..33fdc5bc 100644 --- a/scripts/install-vim.sh +++ b/scripts/install-vim.sh @@ -4,6 +4,12 @@ set -ev git clone --depth 1 --branch "${VIM_VERSION}" https://github.com/vim/vim /tmp/vim cd /tmp/vim +case "${VIM_VERSION}" in + v7.*|v8.0.*) + # Old Vim sources do not build with recent compilers (GCC 14+, C23). + export CFLAGS="-O2 -std=gnu89 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=int-conversion -Wno-error=incompatible-pointer-types" + ;; +esac ./configure --prefix="${HOME}/vim" --with-features=huge --enable-fail-if-missing make -j2 make install