Skip to content

Commit

Permalink
CMake version as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Aug 2, 2024
1 parent dd7601d commit 98b853e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ else # Linux
ca-certificates \
curl
fi
CMAKE_VERSION="3.30.0"
curl -O -L \
https://github.com/Kitware/CMake/releases/download/v3.30.0/cmake-3.30.0-linux-${ARCH}.sh \
https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-${ARCH}.sh \
|| exit 1
sudo mkdir /opt/cmake || exit 1
sudo sh cmake-3.30.0-linux-${ARCH}.sh --skip-license --prefix=/opt/cmake || exit 1
sudo sh cmake-${CMAKE_VERSION}-linux-${ARCH}.sh --skip-license --prefix=/opt/cmake || exit 1
sudo ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake || exit 1

if [[ $IN_UBUNTU_BASE_CONTAINER == "true" ]]; then
Expand Down

0 comments on commit 98b853e

Please sign in to comment.