Skip to content

Commit

Permalink
bump blockifier
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Feb 27, 2025
1 parent aafa666 commit 28921c6
Show file tree
Hide file tree
Showing 22 changed files with 1,281 additions and 589 deletions.
15 changes: 11 additions & 4 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM rust:slim as chef
ARG CAIRO_NATIVE=false

# Install libclang and other necessary tools
RUN apt-get update && \
apt-get install -y clang llvm-dev libclang-dev git libtool automake autoconf make curl protobuf-compiler && \
rm -rf /var/lib/apt/lists/*
apt-get install -y clang llvm-dev libclang-dev git libtool automake autoconf make curl protobuf-compiler && \
rm -rf /var/lib/apt/lists/*

# Verify and set LIBCLANG_PATH environment variable
RUN find /usr -name "libclang.so*" && \
export LIBCLANG_PATH=$(find /usr -name "libclang.so*" | head -n 1 | xargs dirname)
export LIBCLANG_PATH=$(find /usr -name "libclang.so*" | head -n 1 | xargs dirname)

COPY rust-toolchain.toml .
RUN rustup install $(cat rust-toolchain.toml | grep channel | cut -d' ' -f3 | tr -d '"')
Expand All @@ -33,7 +34,13 @@ RUN cargo build --release --bins # pre-cache some stuff
COPY . .
ENV PATH="/root/.cargo/bin:${PATH}"

RUN cargo build --release --bins
RUN if [ "$CAIRO_NATIVE" = "true" ]; then \
# Install cairo-native dependencies
sudo apt-get install llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools; \
cargo build --release --bins --features cairo-native; \
else \
cargo build --release --bins; \
fi

FROM rust:1-alpine

Expand Down
Loading

0 comments on commit 28921c6

Please sign in to comment.