aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJakub Łuczyński <doubleloop@users.noreply.github.com>2021-10-20 04:19:33 +0200
committerGitHub <noreply@github.com>2021-10-19 19:19:33 -0700
commit035d82e0d3c1c4af09111578e20cf672bd4c432b (patch)
tree3441a4feec770f1752092d5797564d6de4ef3166 /.github
parent427bac687746b2bb66537b39115969c8d3a440c1 (diff)
downloadrneovim-035d82e0d3c1c4af09111578e20cf672bd4c432b.tar.gz
rneovim-035d82e0d3c1c4af09111578e20cf672bd4c432b.tar.bz2
rneovim-035d82e0d3c1c4af09111578e20cf672bd4c432b.zip
build: update cmake min version to 3.10 #16065
* build(cmake): update cmake min version to 3.10 * ci: test cmake minimum required version * build(cmake): remove some legacy includes * Since version 3.5 cmake_parse_arguments is implemented natively.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0dbe484108..968094a2a6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -37,6 +37,7 @@ jobs:
cc: gcc
runner: ubuntu-20.04
os: linux
+ cmake: minimum_required
runs-on: ${{ matrix.runner }}
timeout-minutes: 45
if: github.event.pull_request.draft == false
@@ -55,6 +56,24 @@ jobs:
sudo apt-get update
sudo apt-get install -y autoconf automake build-essential ccache cmake cpanminus cscope gcc-multilib gdb gettext gperf 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'
+ env:
+ CMAKE_URL: 'https://cmake.org/files/v3.10/cmake-3.10.0-Linux-x86_64.sh'
+ CMAKE_VERSION: '3.10.0'
+ shell: bash
+ run: |
+ curl --retry 5 --silent --show-error --fail -o /tmp/cmake-installer.sh "$CMAKE_URL"
+ mkdir -p "$HOME/.local/bin" /opt/cmake-custom
+ chmod a+x /tmp/cmake-installer.sh
+ /tmp/cmake-installer.sh --prefix=/opt/cmake-custom --skip-license
+ ln -sfn /opt/cmake-custom/bin/cmake "$HOME/.local/bin/cmake"
+ cmake_version="$(cmake --version | head -1)"
+ echo "$cmake_version" | grep -qF "cmake version $CMAKE_VERSION" || {
+ echo "Unexpected CMake version: $cmake_version"
+ exit 1
+ }
+
- name: Install new clang
if: matrix.flavor == 'asan' || matrix.flavor == 'tsan'
run: |