Skip to content

Commit d972e23

Browse files
committed
Install cmake in CI
Fix suggested by Copilot
1 parent 3756c88 commit d972e23

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- name: Allow for file ownership conflicts with Docker and GitHub Actions
2222
run: git config --global --add safe.directory '*'
23+
- name: Install latest CMake
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get remove --purge --auto-remove cmake
27+
sudo snap install cmake --classic
28+
cmake --version
29+
- name: Use system CMake for Alien-cmake3
30+
run: echo "ALIEN_CMAKE3_SYSTEM=1" >> $GITHUB_ENV
2331
- name: Run Tests with coverage
2432
env:
2533
AUTHOR_TESTING: 1

0 commit comments

Comments
 (0)