Skip to content

Commit 09768d7

Browse files
committed
install cmake version, where there is no regression
1 parent 9884e28 commit 09768d7

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/cmake.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,10 @@ jobs:
4545
sudo apt-get update
4646
sudo apt install curl pkg-config zip unzip tar cmake git -y
4747
48-
- name: Install cmake >= 3.25 (Linux)
49-
if: matrix.config.os == 'ubuntu'
50-
shell: bash
51-
run: |
52-
sudo apt-get update
53-
sudo apt-get install gpg wget
54-
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
55-
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
56-
sudo apt-get update
57-
sudo apt-get install cmake -y
48+
- name: Install cmake 3.29.0 and ninja
49+
uses: lukka/get-cmake@latest
50+
with:
51+
cmakeVersion: 3.29.0
5852

5953
- name: Setup GCC (Linux)
6054
if: matrix.config.os == 'ubuntu'
@@ -71,8 +65,6 @@ jobs:
7165
git clone https://github.com/Microsoft/vcpkg.git
7266
"${{github.workspace}}/vcpkg/bootstrap-vcpkg.sh"
7367
74-
- uses: abdes/gha-setup-ninja@master
75-
7668
- name: Configure CMake (Windows only)
7769
if: matrix.config.os == 'windows'
7870
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.

0 commit comments

Comments
 (0)