Skip to content

Commit

Permalink
[ci][docker] Use CMake 3.20.0 for cortexm
Browse files Browse the repository at this point in the history
The Zephyr project builds require 3.20.0 to work correctly
  • Loading branch information
driazati committed Sep 8, 2022
1 parent 64031d5 commit c27a98d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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
14 changes: 10 additions & 4 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}
psuh cmake-${version}
./bootstrap
make -j$(nproc)
make -j"$(nproc)"
make install
cd ..
rm -rf cmake-${version} cmake-${version}.tar.gz

0 comments on commit c27a98d

Please sign in to comment.