From d32f23b531e659b1caad34c783bd09d7bf50136b Mon Sep 17 00:00:00 2001 From: mcbarton Date: Sat, 22 Feb 2025 19:35:26 +0000 Subject: [PATCH] Install cmake and ninja from apt ci Dockerfile --- ci/docker/Dockerfile | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/ci/docker/Dockerfile b/ci/docker/Dockerfile index 9188fc2f4..65ba573c4 100644 --- a/ci/docker/Dockerfile +++ b/ci/docker/Dockerfile @@ -15,26 +15,9 @@ RUN apt-get update \ python3 \ git \ unzip \ - xz-utils - -# Install a more recent version of CMake than what 18.04 has since that's what -# LLVM requires. -RUN ARCH=$(uname -m) \ - && curl -sSLO https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5-linux-${ARCH}.tar.gz \ - && tar xf cmake-3.29.5-linux-${ARCH}.tar.gz \ - && rm cmake-3.29.5-linux-${ARCH}.tar.gz \ - && mkdir -p /opt \ - && mv cmake-3.29.5-linux-${ARCH} /opt/cmake - -ENV PATH /opt/cmake/bin:$PATH - -# As with CMake install a later version of Ninja than waht 18.04 has. -RUN ARCH=$(uname -m) \ - && if [ "$ARCH" = "aarch64" ]; then SUFFIX=-aarch64; fi \ - && curl -sSL -o ninja.zip https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux${SUFFIX}.zip \ - && unzip ninja.zip \ - && rm *.zip \ - && mv ninja /opt/cmake/bin + xz-utils \ + cmake \ + ninja-build # Tell programs to cache in a location that both isn't a `--volume` mounted root # and isn't `/root` in the container as that won't be writable during the build.