Skip to content

Commit 367d2e5

Browse files
authored
fix Rust CI (#87)
1 parent 6cab9c2 commit 367d2e5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/rust.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,19 @@ jobs:
4242
- run: rustup default stable
4343
- run: rustup component add rustfmt
4444
- run: rustup component add clippy
45+
- name: Install CMake 3.x (Ubuntu)
46+
if: runner.os == 'Linux'
47+
run: |
48+
sudo apt-get remove --purge --auto-remove cmake -y
49+
sudo apt-get update
50+
sudo apt-get install -y wget
51+
wget -qO cmake.sh https://github.com/Kitware/CMake/releases/download/v3.27.6/cmake-3.27.6-linux-x86_64.sh
52+
sudo mkdir -p /opt/cmake
53+
sudo sh cmake.sh --prefix=/opt/cmake --skip-license
54+
echo "/opt/cmake/bin" >> $GITHUB_PATH
55+
- name: Install CMake 3.x (Windows)
56+
if: runner.os == 'Windows'
57+
run: |
58+
choco install cmake --version=3.27.6 -y --installargs 'ADD_CMAKE_TO_PATH=System' --allow-downgrade
59+
shell: powershell
4560
- run: make ${{ matrix.make_target }}

0 commit comments

Comments
 (0)