File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed
tools/ci_build/github/azure-pipeline/templates Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 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.
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}}"
Original file line number Diff line number Diff line change 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.
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}}"
You can’t perform that action at this time.
0 commit comments