Skip to content

Commit e773351

Browse files
committed
fix(CI): CMake 3.25 or higher is required
1 parent 9cafc6d commit e773351

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ jobs:
158158
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata # tzdata may ask for user interaction if not explicitly installed here
159159
echo "AGENT_TOOLSDIRECTORY=/" >> $GITHUB_ENV # do not use the Python installation cached for Ubuntu 22.04
160160
git config --global --add safe.directory '*' # silence "git failed because of dubious ownership"
161+
162+
# CMake 3.25 or higher is required
163+
apt-get install -y ca-certificates gpg wget
164+
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
165+
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
166+
apt-get update -y && apt-get install -y cmake
161167
- uses: actions/checkout@v4
162168
with:
163169
submodules: recursive

0 commit comments

Comments
 (0)