install-cmake.yml (#5523)
This commit is contained in:
parent
17c3cb50f1
commit
277191789e
@ -111,6 +111,8 @@ jobs:
|
||||
|
||||
- template: /eng/pipelines/templates/steps/fix-1es-image-apt-azure-sources.yml
|
||||
|
||||
- template: /eng/pipelines/templates/steps/install-cmake.yml
|
||||
|
||||
- pwsh: sudo apt update && sudo apt install -y $(AptDependencies)
|
||||
retryCountOnTaskFailure: 10
|
||||
condition: and(succeeded(), ne(variables['AptDependencies'], ''))
|
||||
|
||||
@ -74,9 +74,11 @@ jobs:
|
||||
- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml
|
||||
parameters:
|
||||
AgentImage: $(OSVmImage)
|
||||
|
||||
|
||||
- template: /eng/pipelines/templates/steps/fix-1es-image-apt-azure-sources.yml
|
||||
|
||||
- template: /eng/pipelines/templates/steps/install-cmake.yml
|
||||
|
||||
- pwsh: sudo apt update && sudo apt install -y $(AptDependencies)
|
||||
retryCountOnTaskFailure: 10
|
||||
condition: and(succeeded(), ne(variables['AptDependencies'], ''))
|
||||
|
||||
@ -104,6 +104,8 @@ jobs:
|
||||
|
||||
- template: /eng/pipelines/templates/steps/fix-1es-image-apt-azure-sources.yml
|
||||
|
||||
- template: /eng/pipelines/templates/steps/install-cmake.yml
|
||||
|
||||
# Add g++5 repo to ubuntu
|
||||
- bash: sudo sh -c "echo 'deb http://ftp.debian.org/debian/ stretch main' >> /etc/apt/sources.list"
|
||||
displayName: Add g++ 5
|
||||
|
||||
@ -49,6 +49,7 @@ extends:
|
||||
runProxy: true
|
||||
rootFolder: '$(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}}'
|
||||
templateFolder: '$(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}}'
|
||||
- template: /eng/pipelines/templates/steps/install-cmake.yml
|
||||
|
||||
ServiceDirectory: ${{ parameters.ServiceDirectory }}
|
||||
PackageVersions: ${{ parameters.PackageVersions }}
|
||||
|
||||
12
eng/pipelines/templates/steps/install-cmake.yml
Normal file
12
eng/pipelines/templates/steps/install-cmake.yml
Normal file
@ -0,0 +1,12 @@
|
||||
parameters:
|
||||
Version: '3.29.2'
|
||||
|
||||
steps:
|
||||
- bash: |
|
||||
curl -fsSL "https://github.com/Kitware/CMake/releases/download/v${{ parameters.Version }}/cmake-${{ parameters.Version }}-linux-x86_64.sh" -o cmakeinstall.sh
|
||||
|
||||
sudo chmod +x cmakeinstall.sh \
|
||||
&& sudo ./cmakeinstall.sh --prefix=/usr/local --exclude-subdir \
|
||||
&& sudo rm cmakeinstall.sh
|
||||
displayName: Install Cmake ${{ parameters.Version }} (Linux)
|
||||
condition: eq(variables['Agent.OS'], 'Linux')
|
||||
Loading…
Reference in New Issue
Block a user