Skip to content

Commit

Permalink
[workflows] Upgrade CMake in Ubuntu AArch64 container image
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bryanpkc committed Oct 12, 2024
1 parent da8b348 commit fa9105e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/UbuntuDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fa9105e

Please sign in to comment.