build reth for taiko

This commit is contained in:
goldsquid
2026-06-07 13:18:04 +07:00
parent 86d0f53569
commit df8aeaefd1
3 changed files with 55 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ ARG PROFILE=maxperf
ARG BUILD_OP_RETH=false
ARG BUILD_BASE_RETH=false
ARG BUILD_BSC_RETH=false
ARG BUILD_ALETHIA_RETH=false
# Set up cargo for maximum performance with aggressive optimizations
RUN mkdir -p /root/.cargo && \
@@ -262,6 +263,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
echo "DEBUG: BUILD_OP_RETH=[$BUILD_OP_RETH]" && \
echo "DEBUG: BUILD_BASE_RETH=[$BUILD_BASE_RETH]" && \
echo "DEBUG: BUILD_BSC_RETH=[$BUILD_BSC_RETH]" && \
echo "DEBUG: BUILD_ALETHIA_RETH=[$BUILD_ALETHIA_RETH]" && \
if [ "$BUILD_OP_RETH" = "true" ]; then \
echo "DEBUG: Taking OP_RETH branch" && \
echo "Building op-reth with optimism feature" && \
@@ -277,6 +279,11 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
echo "Building reth-bsc" && \
cargo build --profile $PROFILE --locked --bin reth-bsc --features jemalloc,asm-keccak && \
cp target/$PROFILE/reth-bsc /usr/local/bin/reth; \
elif [ "$BUILD_ALETHIA_RETH" = "true" ]; then \
echo "DEBUG: Taking ALETHIA_RETH branch" && \
echo "Building alethia-reth (Taiko)" && \
cargo build --profile $PROFILE --locked --bin alethia-reth && \
cp target/$PROFILE/alethia-reth /usr/local/bin/reth; \
else \
echo "DEBUG: Taking DEFAULT branch" && \
echo "Building standard reth" && \