This commit is contained in:
goldsquid
2025-09-13 21:06:12 +07:00
parent 67713ba396
commit 1fc9974623
3 changed files with 9 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ services:
ARCH_TARGET: ${ARCH_TARGET:-native} ARCH_TARGET: ${ARCH_TARGET:-native}
PROFILE: ${RETH_BUILD_PROFILE:-maxperf} PROFILE: ${RETH_BUILD_PROFILE:-maxperf}
BUILD_OP_RETH: false BUILD_OP_RETH: false
BUILD_BASE_RETH: false
BUILD_BSC_RETH: true BUILD_BSC_RETH: true
sysctls: sysctls:
# TCP Performance # TCP Performance

View File

@@ -54,6 +54,7 @@ services:
ARCH_TARGET: ${ARCH_TARGET:-native} ARCH_TARGET: ${ARCH_TARGET:-native}
PROFILE: ${RETH_BUILD_PROFILE:-maxperf} PROFILE: ${RETH_BUILD_PROFILE:-maxperf}
BUILD_OP_RETH: false BUILD_OP_RETH: false
BUILD_BASE_RETH: false
BUILD_BSC_RETH: true BUILD_BSC_RETH: true
sysctls: sysctls:
# TCP Performance # TCP Performance

View File

@@ -253,20 +253,26 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
fi && \ fi && \
export RUSTFLAGS CFLAGS CXXFLAGS && \ export RUSTFLAGS CFLAGS CXXFLAGS && \
echo "Building with RUSTFLAGS: $RUSTFLAGS" && \ echo "Building with RUSTFLAGS: $RUSTFLAGS" && \
echo "DEBUG: BUILD_OP_RETH=[$BUILD_OP_RETH]" && \
echo "DEBUG: BUILD_BASE_RETH=[$BUILD_BASE_RETH]" && \
echo "DEBUG: BUILD_BSC_RETH=[$BUILD_BSC_RETH]" && \
if [ "$BUILD_OP_RETH" = "true" ]; then \ if [ "$BUILD_OP_RETH" = "true" ]; then \
echo "DEBUG: Taking OP_RETH branch" && \
echo "Building op-reth with optimism feature" && \ echo "Building op-reth with optimism feature" && \
cargo build --profile $PROFILE --locked --bin op-reth --features jemalloc,asm-keccak --manifest-path crates/optimism/bin/Cargo.toml && \ cargo build --profile $PROFILE --locked --bin op-reth --features jemalloc,asm-keccak --manifest-path crates/optimism/bin/Cargo.toml && \
cp target/$PROFILE/op-reth /usr/local/bin/op-reth; \ cp target/$PROFILE/op-reth /usr/local/bin/op-reth; \
elif [ "$BUILD_BASE_RETH" = "true" ]; then \ elif [ "$BUILD_BASE_RETH" = "true" ]; then \
echo "DEBUG: Taking BASE_RETH branch" && \
echo "Building base-reth-node with flashbots feature" && \ echo "Building base-reth-node with flashbots feature" && \
cargo build --bin base-reth-node --release && \ cargo build --bin base-reth-node --release && \
cp target/release/base-reth-node /usr/local/bin/base-reth-node; \ cp target/release/base-reth-node /usr/local/bin/base-reth-node; \
elif [ "$BUILD_BSC_RETH" = "true" ]; then \ elif [ "$BUILD_BSC_RETH" = "true" ]; then \
echo "DEBUG: Taking BSC_RETH branch" && \
echo "Building bsc-reth" && \ echo "Building bsc-reth" && \
cargo build --profile $PROFILE --locked --bin bsc-reth --features jemalloc,asm-keccak && \ cargo build --profile $PROFILE --locked --bin bsc-reth --features jemalloc,asm-keccak && \
cp target/$PROFILE/bsc-reth /usr/local/bin/reth; \ cp target/$PROFILE/bsc-reth /usr/local/bin/reth; \
else \ else \
echo "DEBUG: Taking DEFAULT branch" && \
echo "Building standard reth" && \ echo "Building standard reth" && \
cargo build --profile $PROFILE --locked --bin reth --features jemalloc,asm-keccak && \ cargo build --profile $PROFILE --locked --bin reth --features jemalloc,asm-keccak && \
cp target/$PROFILE/reth /usr/local/bin/reth; \ cp target/$PROFILE/reth /usr/local/bin/reth; \