Skip to content

Commit 9539fb3

Browse files
author
Sayan Shaw
committed
update commands for AzureLinux change
1 parent 9ea10e1 commit 9539fb3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 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,7 +54,7 @@ jobs:
4954
displayName: 'build onnxruntime-extensions and run tests'
5055
- ${{ else }}:
5156
- bash: |
52-
sudo apt remove cmake
57+
sudo dnf remove cmake
5358
pip install cmake --upgrade
5459
export PATH=~/.local/bin:$PATH
5560
cmake --version

0 commit comments

Comments
 (0)