From 501e6fb24587342ea5201cc35125f9650251e2e6 Mon Sep 17 00:00:00 2001 From: tienntr <93871686+tienntr@users.noreply.github.com> Date: Thu, 14 Dec 2023 02:29:58 +0000 Subject: [PATCH] Use CMake 3.28 from upstream to build LLVM New LLVM requires CMake >= 3.20 to build, while the one in CentOS 7 repo is 3.17.5. --- .github/workflows/build-centos7.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-centos7.yaml b/.github/workflows/build-centos7.yaml index f20fc87d77e..d2068dfc2ec 100644 --- a/.github/workflows/build-centos7.yaml +++ b/.github/workflows/build-centos7.yaml @@ -26,8 +26,12 @@ jobs: bison flex texinfo patchutils zlib-devel expat-devel \ python-devel \ ninja-build dtc glib2-devel \ - cmake3 devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-make \ + devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-make \ git236-core + curl -Lo cmake.sh https://github.com/Kitware/CMake/releases/download/v3.28.0/cmake-3.28.0-linux-x86_64.sh && \ + chmod +x cmake.sh && \ + ./cmake.sh --skip-license --prefix=/usr && \ + rm -f cmake.sh - uses: actions/checkout@v3