Skip to content

Commit 6b68d45

Browse files
sayanshaw24Sayan Shaw
andcommitted
Upgrade CMake for Linux NuGet packaging pipeline (#454)
* update nuget linux packaging pool to fix cmake version issue on nuget packaging pipeline * switch nuget linux pool to ubuntu-latest * upgrade cmake * more fixes * install cmake binary * try to use pip installed cmake * more fixes * add source bash profile reset * typo * try ~/.local/bin again * add comment --------- Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
1 parent 3d94af1 commit 6b68d45

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.pipelines/templates/build-package-for-linux.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636

3737
# Currently we can only run tests on x64 as the arm64 tests have a failure
3838
# https://github.com/microsoft/onnxruntime-extensions/issues/417
39+
# NOTE: on arm64 machine, CMake version needs to be updated since we now require CMake 3.25 or newer.
3940
- ${{ if eq(parameters.OrtExtensionsArch, 'x64') }}:
4041
- bash: |
4142
export CFLAGS="${{parameters.OrtExtensionsCFlags}}"
@@ -45,6 +46,10 @@ jobs:
4546
displayName: 'build onnxruntime-extensions and run tests'
4647
- ${{ else }}:
4748
- bash: |
49+
sudo apt remove cmake
50+
pip install cmake --upgrade
51+
export PATH=~/.local/bin:$PATH
52+
cmake --version
4853
export CFLAGS="${{parameters.OrtExtensionsCFlags}}"
4954
export CXXFLAGS="${{parameters.OrtExtensionsCXXFlags}}"
5055
./build_lib.sh --build_dir $(Build.BinariesDirectory)/out/ --config RelWithDebInfo --parallel ${{parameters.AdditionalBuildFlags}}

0 commit comments

Comments
 (0)