Skip to content

Commit

Permalink
[ci][docker] Use CMake 3.20.0 for cortexm (#12744)
Browse files Browse the repository at this point in the history
The Zephyr project builds require 3.20.0 to work correctly

Co-authored-by: driazati <driazati@users.noreply.github.com>
  • Loading branch information
driazati and driazati authored Sep 9, 2022
1 parent 89ce171 commit 1c5ffc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.ci_cortexm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
RUN bash /install/ubuntu1804_install_python.sh

COPY install/ubuntu_install_cmake_source.sh /install/ubuntu_install_cmake_source.sh
RUN bash /install/ubuntu_install_cmake_source.sh
RUN bash /install/ubuntu_install_cmake_source.sh 3.20.0

COPY install/ubuntu1804_install_python_venv.sh /install/ubuntu1804_install_python_venv.sh
RUN bash /install/ubuntu1804_install_python_venv.sh
Expand Down
12 changes: 9 additions & 3 deletions docker/install/ubuntu_install_cmake_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ set -e
set -u
set -o pipefail

v=3.18
version=3.18.4
if [ -z ${1+x} ]; then
version=3.18.4
else
version=$1
fi

v=$(echo $version | sed 's/\(.*\)\..*/\1/g')
echo "Installing cmake $version ($v)"
wget https://cmake.org/files/v${v}/cmake-${version}.tar.gz
tar xvf cmake-${version}.tar.gz
cd cmake-${version}
./bootstrap
make -j$(nproc)
make -j"$(nproc)"
make install
cd ..
rm -rf cmake-${version} cmake-${version}.tar.gz

0 comments on commit 1c5ffc6

Please sign in to comment.