Skip to content

Commit f4ddc1e

Browse files
author
Sayan Shaw
committed
Merge branch 'main' of https://github.com/microsoft/onnxruntime-extensions into sayanshaw/qwen2-5-vl
2 parents 892e608 + 247abb4 commit f4ddc1e

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ jobs:
3535
submodules: none
3636

3737
- bash: |
38-
sudo apt-get update
39-
sudo apt-get install -y libssh-dev
38+
if [ "${{parameters.OrtExtensionsArch}}" == "x64" ]; then
39+
sudo apt-get update
40+
sudo apt-get install -y libssh-dev
41+
else
42+
sudo dnf update -y
43+
sudo dnf install -y libssh-devel
44+
fi
4045
displayName: Install OpenSSL for Azure custom ops
4146
4247
# NOTE: on arm64 machine, CMake version needs to be updated since we now require CMake 3.28 or newer.
@@ -49,8 +54,12 @@ jobs:
4954
displayName: 'build onnxruntime-extensions and run tests'
5055
- ${{ else }}:
5156
- bash: |
52-
sudo apt remove cmake
53-
pip install cmake --upgrade
57+
if ! dnf list installed cmake &>/dev/null; then
58+
echo "CMake is not installed. Installing/upgrading cmake."
59+
pip install cmake --upgrade
60+
else
61+
echo "CMake is already installed."
62+
fi
5463
export PATH=~/.local/bin:$PATH
5564
cmake --version
5665
export CFLAGS="${{parameters.OrtExtensionsCFlags}}"

tools/ci_build/github/azure-pipeline/templates/build-package-for-linux.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@ jobs:
4545
submodules: none
4646

4747
- bash: |
48-
sudo apt-get update
49-
sudo apt-get install -y libssh-dev
48+
if [ "${{parameters.OrtExtensionsArch}}" == "x64" ]; then
49+
sudo apt-get update
50+
sudo apt-get install -y libssh-dev
51+
else
52+
sudo dnf update
53+
sudo dnf install -y libssh-devel
54+
fi
5055
displayName: Install OpenSSL for Azure custom ops
5156
5257
# NOTE: on arm64 machine, CMake version needs to be updated since we now require CMake 3.28 or newer.
@@ -59,8 +64,12 @@ jobs:
5964
displayName: 'build onnxruntime-extensions and run tests'
6065
- ${{ else }}:
6166
- bash: |
62-
sudo apt remove cmake
63-
pip install cmake --upgrade
67+
if ! dnf list installed cmake &>/dev/null; then
68+
echo "CMake is not installed. Installing/upgrading cmake."
69+
pip install cmake --upgrade
70+
else
71+
echo "CMake is already installed."
72+
fi
6473
export PATH=~/.local/bin:$PATH
6574
cmake --version
6675
export CFLAGS="${{parameters.OrtExtensionsCFlags}}"

0 commit comments

Comments
 (0)