File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 3333 pkg-config \
3434 build-essential
3535 if : runner.os == 'Linux'
36+
37+ - name : Find and fix librdkafka CMakeLists.txt
38+ run : |
39+ # Download the package first so it's in the registry
40+ cargo fetch
41+
42+ # Find the rdkafka-sys package directory
43+ RDKAFKA_SYS_DIR=$(find ~/.cargo/registry/src -name "rdkafka-sys-*" -type d | head -n 1)
44+ echo "Found rdkafka-sys at: $RDKAFKA_SYS_DIR"
45+
46+ # Find the librdkafka CMakeLists.txt file
47+ CMAKE_FILE="$RDKAFKA_SYS_DIR/librdkafka/CMakeLists.txt"
48+
49+ if [ -f "$CMAKE_FILE" ]; then
50+ echo "Found CMakeLists.txt at: $CMAKE_FILE"
51+
52+ # Make a backup of the original file
53+ cp "$CMAKE_FILE" "$CMAKE_FILE.bak"
54+
55+ # Replace the minimum required version
56+ sed -i 's/cmake_minimum_required(VERSION 3.2)/cmake_minimum_required(VERSION 3.5)/' "$CMAKE_FILE"
57+
58+ echo "Modified CMakeLists.txt - before and after comparison:"
59+ diff "$CMAKE_FILE.bak" "$CMAKE_FILE" || true
60+ else
61+ echo "Could not find librdkafka CMakeLists.txt file!"
62+ exit 1
63+ fi
3664
3765 - name : Check with clippy
3866 env :
You can’t perform that action at this time.
0 commit comments