]> granicus.if.org Git - graphviz/commitdiff
CI: on Ubuntu 18.04, install CMake from Kitware instead of Apt
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 12 Oct 2022 04:43:55 +0000 (21:43 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 14 Oct 2022 00:00:28 +0000 (17:00 -0700)
This moves the CMake version available on this platform from 3.10.2 to 3.24.2.
The new CMake floor is 3.16.3, determined by Ubuntu 20.04.

Gitlab: #2290

.gitlab-ci.yml
ci/ubuntu-18.04/Dockerfile

index 5389528fe43642e341f9705f991bd3fc32310188..473bc05e1ad5b77501aa2ca1864e2c707ea9f103 100644 (file)
@@ -669,6 +669,7 @@ ubuntu-18.04-cmake-build:
           artifacts: false
     before_script:
         - export build_system="cmake"
+        - export PATH=/opt/cmake/bin:${PATH}
         # fail on any compiler warnings
         - export CFLAGS=-Werror
         - export CXXFLAGS=-Werror
@@ -1076,6 +1077,7 @@ ubuntu-18.04-cmake-test:
     <<: *linux_test_definition
     before_script:
         - export build_system="cmake"
+        - export PATH=/opt/cmake/bin:${PATH}
         - python3 gen_version.py --output GRAPHVIZ_VERSION
     needs:
         - job: "ubuntu-18.04-cmake-build"
index 5d1dffbea20971d661e8e91123d8fd6d303d0e7c..9d075a0908e5bfb07d9402916cb1e4cd2b55f79d 100644 (file)
@@ -8,7 +8,6 @@ RUN apt-get update -y \
 && apt-get install --no-install-recommends -y \
 # Development tools
 build-essential \
-cmake \
 git \
 pkg-config \
 autoconf \
@@ -80,8 +79,13 @@ tcl-dev \
 ksh \
 python3-pip \
 python3-setuptools \
+wget \
 # install Python dependencies
 && python3 -m pip install --user --upgrade pip \
 && python3 -m pip install --user --requirement requirements.txt \
+&& wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2-linux-x86_64.sh \
+&& mkdir -p /opt/cmake \
+&& /bin/sh ./cmake-3.24.2-linux-x86_64.sh --exclude-subdir --prefix=/opt/cmake --skip-license \
+&& rm cmake-3.24.2-linux-x86_64.sh \
 # Clean up
 && rm -rf /var/lib/apt/lists/*