Skip to content

Commit 2b46714

Browse files
committed
ci: replace manually install CMake with official kitware/cmake-action
1 parent 463ce33 commit 2b46714

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,11 @@ jobs:
7070
- name: Install dependencies
7171
run: |
7272
brew install openssl
73-
# Install CMake 3.31.6 from Kitware
74-
curl -L https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-macos-universal.dmg -o cmake.dmg
75-
hdiutil attach cmake.dmg
76-
sudo cp -R /Volumes/cmake-3.31.6-macos-universal/CMake.app /Applications/
77-
sudo /Applications/CMake.app/Contents/bin/cmake-gui --install
78-
hdiutil detach /Volumes/cmake-3.31.6-macos-universal
79-
rm cmake.dmg
73+
74+
- name: Setup CMake
75+
uses: kitware/cmake-action@v1
76+
with:
77+
version: 3.26.x
8078

8179
- name: Configure and build
8280
env:

0 commit comments

Comments
 (0)