Skip to content

Commit 719ce37

Browse files
Pin CMake to v3.31.6 (#3144)
***NO_CI***
1 parent 9fc44db commit 719ce37

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

azure-pipelines-nightly.yml

+3
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ jobs:
301301
steps:
302302
- template: azure-pipelines-templates/build-preparations.yml
303303
- template: azure-pipelines-templates/nb-gitversioning.yml
304+
- template: azure-pipelines-templates/download-install-cmake.yml
304305
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
305306
- template: azure-pipelines-templates/download-install-ninja.yml
306307
- template: azure-pipelines-templates/download-srecord.yml
@@ -671,6 +672,7 @@ jobs:
671672
steps:
672673
- template: azure-pipelines-templates/build-preparations.yml
673674
- template: azure-pipelines-templates/nb-gitversioning.yml
675+
- template: azure-pipelines-templates/download-install-cmake.yml
674676
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
675677
- template: azure-pipelines-templates/download-install-ninja.yml
676678
- template: azure-pipelines-templates/build-ti-simplelink-targets.yml
@@ -722,6 +724,7 @@ jobs:
722724
steps:
723725
- template: azure-pipelines-templates/build-preparations.yml
724726
- template: azure-pipelines-templates/nb-gitversioning.yml
727+
- template: azure-pipelines-templates/download-install-cmake.yml
725728
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
726729
- template: azure-pipelines-templates/download-install-ninja.yml
727730
- template: azure-pipelines-templates/download-hexdfu.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
parameters:
5+
- name: cmakeVersion
6+
type: string
7+
default: "3.31.6"
8+
9+
steps:
10+
- task: Cache@2
11+
inputs:
12+
key: 'cmake-3_31_6'
13+
path: $(System.DefaultWorkingDirectory)/choco_cache/cmake
14+
displayName: 'Cache CMake installation'
15+
16+
- script: |
17+
cmake --version
18+
choco install cmake --version=${{ parameters.cmakeVersion }} --force --yes --cache $(System.DefaultWorkingDirectory)/choco_cache/cmake
19+
cmake --version
20+
displayName: 'Force Install CMake ${{ parameters.cmakeVersion }}'

azure-pipelines.yml

+4
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ jobs:
420420
steps:
421421
- template: azure-pipelines-templates/build-preparations.yml
422422
- template: azure-pipelines-templates/nb-gitversioning.yml
423+
- template: azure-pipelines-templates/download-install-cmake.yml
423424
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
424425
- template: azure-pipelines-templates/download-install-ninja.yml
425426
- template: azure-pipelines-templates/download-srecord.yml
@@ -622,6 +623,7 @@ jobs:
622623
steps:
623624
- template: azure-pipelines-templates/build-preparations.yml
624625
- template: azure-pipelines-templates/nb-gitversioning.yml
626+
- template: azure-pipelines-templates/download-install-cmake.yml
625627
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
626628
- template: azure-pipelines-templates/download-install-ninja.yml
627629
- template: azure-pipelines-templates/download-srecord.yml
@@ -700,6 +702,7 @@ jobs:
700702
steps:
701703
- template: azure-pipelines-templates/build-preparations.yml
702704
- template: azure-pipelines-templates/nb-gitversioning.yml
705+
- template: azure-pipelines-templates/download-install-cmake.yml
703706
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
704707
- template: azure-pipelines-templates/download-install-ninja.yml
705708
- template: azure-pipelines-templates/build-ti-simplelink-targets.yml
@@ -771,6 +774,7 @@ jobs:
771774
steps:
772775
- template: azure-pipelines-templates/build-preparations.yml
773776
- template: azure-pipelines-templates/nb-gitversioning.yml
777+
- template: azure-pipelines-templates/download-install-cmake.yml
774778
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
775779
- template: azure-pipelines-templates/download-install-ninja.yml
776780
- template: azure-pipelines-templates/download-hexdfu.yml

0 commit comments

Comments
 (0)