mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add hivetests profile (#4833)
This commit is contained in:
1
.github/workflows/hive.yml
vendored
1
.github/workflows/hive.yml
vendored
@ -27,6 +27,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
tags: paradigmxyz/reth:main
|
tags: paradigmxyz/reth:main
|
||||||
|
build-args: BUILD_PROFILE=hivetests
|
||||||
outputs: type=docker,dest=./artifacts/reth_image.tar
|
outputs: type=docker,dest=./artifacts/reth_image.tar
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|||||||
@ -72,6 +72,12 @@ exclude = [".github/"]
|
|||||||
inherits = "release"
|
inherits = "release"
|
||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
|
# Meant for testing - all optimizations, but with debug assertions and overflow
|
||||||
|
# checks
|
||||||
|
[profile.hivetests]
|
||||||
|
inherits = "test"
|
||||||
|
opt-level = 3
|
||||||
|
|
||||||
[profile.maxperf]
|
[profile.maxperf]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
|
|||||||
@ -26,12 +26,16 @@ RUN cargo chef cook --profile $BUILD_PROFILE --recipe-path recipe.json
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo build --profile $BUILD_PROFILE --locked --bin reth
|
RUN cargo build --profile $BUILD_PROFILE --locked --bin reth
|
||||||
|
|
||||||
|
# ARG is not resolved in COPY so we have to hack around it by copying the
|
||||||
|
# binary to a temporary location
|
||||||
|
RUN cp /app/target/$BUILD_PROFILE/reth /app/reth
|
||||||
|
|
||||||
# Use Ubuntu as the release image
|
# Use Ubuntu as the release image
|
||||||
FROM ubuntu AS runtime
|
FROM ubuntu AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy reth over from the build stage
|
# Copy reth over from the build stage
|
||||||
COPY --from=builder /app/target/release/reth /usr/local/bin
|
COPY --from=builder /app/reth /usr/local/bin
|
||||||
|
|
||||||
# Copy licenses
|
# Copy licenses
|
||||||
COPY LICENSE-* ./
|
COPY LICENSE-* ./
|
||||||
|
|||||||
Reference in New Issue
Block a user