fix(ci): ensure c++ symlink exists for rdkafka build

The librdkafka configure script looks for the 'c++' command, not just 'g++'.
Installing g++ should provide the c++ symlink via alternatives, but this
doesn't always work correctly in minimal containers. This adds an explicit
fallback to create the symlink if update-alternatives fails.
This commit is contained in:
jedarden 2026-07-02 09:13:55 -04:00
parent 57e3b186b0
commit 03f228c62e

View file

@ -105,7 +105,9 @@ spec:
export PATH="/usr/local/cargo/bin:$PATH"
# Install git and build dependencies
apt-get update -qq && apt-get install -y -qq git pkg-config libssl-dev musl-tools >/dev/null 2>&1
apt-get update -qq && apt-get install -y -qq g++ git pkg-config libssl-dev musl-tools >/dev/null 2>&1
# Ensure c++ symlink exists (required by librdkafka configure)
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 50 || ln -sf /usr/bin/g++ /usr/bin/c++
# Clone the repo at the tag to workspace for sharing with later steps
git clone --depth 1 --branch "$TAG" https://github.com/jedarden/miroir.git /workspace/src