From fa9105e4056f952e2668d471187fa94d767ff6f4 Mon Sep 17 00:00:00 2001 From: Bryan Chan Date: Sat, 12 Oct 2024 18:41:49 -0400 Subject: [PATCH] [workflows] Upgrade CMake in Ubuntu AArch64 container image CMake 3.20 suffered from a bug that caused `find_library` to malfunction on Ubuntu when Clang prepends `$CLANG_DIR/lib/$LLVM_HOST_TARGET` to the search path for the linkder `ld`. This patch upgrades the version of CMake used for the AArch64 CI workflow, to match the one used for the X86 CI workflow, which also fixes the bug. Reference: https://gitlab.kitware.com/cmake/cmake/-/issues/25136 --- .github/workflows/UbuntuDockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/UbuntuDockerfile b/.github/workflows/UbuntuDockerfile index ed1bb66ecbc7..541cfeba2262 100644 --- a/.github/workflows/UbuntuDockerfile +++ b/.github/workflows/UbuntuDockerfile @@ -37,9 +37,9 @@ RUN apt --fix-missing update && \ libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl RUN cd /opt && \ - wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-linux-aarch64.sh && \ - /bin/sh cmake-3.20.0-linux-aarch64.sh --skip-license --include-subdir && \ - ln -s /opt/cmake-3.20.0-linux-aarch64/bin/* /usr/local/bin + wget https://github.com/Kitware/CMake/releases/download/v3.30.3/cmake-3.30.3-linux-aarch64.sh && \ + /bin/sh cmake-3.30.3-linux-aarch64.sh --skip-license --include-subdir && \ + ln -s /opt/cmake-3.30.3-linux-aarch64/bin/* /usr/local/bin RUN ln -s /usr/bin/ninja-build /usr/local/bin/ninja