mirror of
https://github.com/ROCm/ROCm.git
synced 2026-01-09 22:58:17 -05:00
29 lines
811 B
YAML
29 lines
811 B
YAML
parameters:
|
|
- name: cmakeVersion
|
|
type: string
|
|
default: '3.31.0'
|
|
|
|
steps:
|
|
- task: Bash@3
|
|
displayName: Install CMake ${{ parameters.cmakeVersion }}
|
|
inputs:
|
|
targetType: inline
|
|
script: |
|
|
CMAKE_VERSION=${{ parameters.cmakeVersion }}
|
|
CMAKE_ROOT="$(Pipeline.Workspace)/cmake"
|
|
|
|
echo "Downloading CMake $CMAKE_VERSION..."
|
|
curl -fsSL -o cmake.tar.gz https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz
|
|
|
|
echo "Extracting to $CMAKE_ROOT..."
|
|
sudo mkdir -p $CMAKE_ROOT
|
|
sudo tar --strip-components=1 -xz -C $CMAKE_ROOT -f cmake.tar.gz
|
|
|
|
echo "##vso[task.prependpath]$CMAKE_ROOT/bin"
|
|
- task: Bash@3
|
|
displayName: cmake --version
|
|
inputs:
|
|
targetType: inline
|
|
script: |
|
|
cmake --version
|