Skip to content

Commit a52868b

Browse files
committed
ci(actions): install standalone cmake 3.x for suites
1 parent 92faec5 commit a52868b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/actions/downstream-perf-suite/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ runs:
4343
- name: 'Install uv and cmake3'
4444
shell: bash
4545
run: |
46-
python3 -m pip install --user uv "cmake<4"
46+
python3 -m pip install --user uv
47+
mkdir -p "$HOME/.local/bin" "$HOME/.local"
48+
CMAKE_VERSION=3.31.6
49+
CMAKE_ROOT="$HOME/.local/cmake-${CMAKE_VERSION}-linux-x86_64"
50+
if [ ! -x "$CMAKE_ROOT/bin/cmake" ]; then
51+
curl -fsSL "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz" \
52+
| tar -xz -C "$HOME/.local"
53+
fi
54+
ln -sf "$CMAKE_ROOT/bin/cmake" "$HOME/.local/bin/cmake"
55+
ln -sf "$CMAKE_ROOT/bin/ctest" "$HOME/.local/bin/ctest"
56+
ln -sf "$CMAKE_ROOT/bin/cpack" "$HOME/.local/bin/cpack"
4757
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
4858
4959
- name: 'Run suite'

0 commit comments

Comments
 (0)