Skip to content

Commit 0dcd54a

Browse files
committed
Add protbuf installation
1 parent 3b4e741 commit 0dcd54a

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

ci/build_wheel_libcuopt.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ fi
1717
# Install Boost and TBB
1818
bash ci/utils/install_boost_tbb.sh
1919

20+
# Install Protobuf
21+
bash ci/utils/install_protobuf.sh
22+
2023
export SKBUILD_CMAKE_ARGS="-DCUOPT_BUILD_WHEELS=ON;-DDISABLE_DEPRECATION_WARNING=ON"
2124

2225
# For pull requests we are enabling assert mode.

ci/utils/install_protobuf.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
set -euo pipefail
7+
8+
# Install Protobuf development libraries
9+
if [ -f /etc/os-release ]; then
10+
. /etc/os-release
11+
if [[ "$ID" == "rocky" ]]; then
12+
echo "Detected Rocky Linux. Installing Protobuf via dnf..."
13+
dnf install -y protobuf-devel protobuf-compiler
14+
elif [[ "$ID" == "ubuntu" ]]; then
15+
echo "Detected Ubuntu. Installing Protobuf via apt..."
16+
apt-get update
17+
apt-get install -y libprotobuf-dev protobuf-compiler
18+
else
19+
echo "Unknown OS: $ID. Please install Protobuf development libraries manually."
20+
exit 1
21+
fi
22+
else
23+
echo "/etc/os-release not found. Cannot determine OS. Please install Protobuf development libraries manually."
24+
exit 1
25+
fi

0 commit comments

Comments
 (0)