Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/scripts/rust-container-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
llvm-dev \
pkg-config

# Pinned: the installer otherwise takes the latest release, and libchdb
# v26.11.1 crashes the lib test binary (SIGSEGV) where v26.9.0, which 0.9.4
# ships, passes. Keep in step with the Dockerfile.
curl -fsSL https://lib.chdb.io -o /tmp/install-chdb.sh
bash /tmp/install-chdb.sh
INSTALL_VERSION="${LIBCHDB_VERSION:-v26.9.0}" bash /tmp/install-chdb.sh

# Install sccache so cargo's RUSTC_WRAPPER works inside the container. The
# compiled-object cache lives in the bind-mounted SCCACHE_DIR (see
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ ENV PATH="/root/.cargo/bin:${PATH}"
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
ENV CARGO_INCREMENTAL=0

RUN curl -sL https://lib.chdb.io | bash
# Pinned with .github/scripts/rust-container-setup.sh: the installer takes
# the latest release otherwise, and v26.11.1 crashes the test binary.
ARG LIBCHDB_VERSION=v26.9.0
RUN curl -sL https://lib.chdb.io | INSTALL_VERSION=${LIBCHDB_VERSION} bash

# NOTE: this image builds from the PARENT directory as its context (the dir
# containing both `hyperbytedb/` and `chdb-rust/`), because hyperbytedb depends
Expand Down
Loading