Skip to content

Commit 61c2af2

Browse files
committed
Unknown target is needed
1 parent 1ef7950 commit 61c2af2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/reproducible_verify.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
1717
1818
RUSTFLAGS="$REPRO_FLAGS" CARGO_INCREMENTAL=0 LC_ALL=C TZ=UTC \
19-
cargo build --release --locked -p op-rbuilder
20-
mv target/release/op-rbuilder build1
19+
cargo build --release --locked -p op-rbuilder --target x86_64-unknown-linux-gnu
20+
mv target/x86_64-unknown-linux-gnu/release/op-rbuilder build1
2121
2222
cargo clean
2323
2424
RUSTFLAGS="$REPRO_FLAGS" CARGO_INCREMENTAL=0 LC_ALL=C TZ=UTC \
25-
cargo build --release --locked -p op-rbuilder
26-
mv target/release/op-rbuilder build2
25+
cargo build --release --locked -p op-rbuilder --target x86_64-unknown-linux-gnu
26+
mv target/x86_64-unknown-linux-gnu/release/op-rbuilder build2
2727
2828
if cmp -s build1 build2; then
2929
echo "✅ Builds are reproducible"

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ ARG FEATURES
8282
WORKDIR /app
8383
COPY . .
8484
RUN SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) \
85-
RUSTFLAGS="--C target-feature=+crt-static -C link-arg=-static-libgcc -C link-arg=-Wl,--build-id=none -C metadata='' --remap-path-prefix=/app=." \
85+
RUSTFLAGS="-C target-feature=+crt-static -C link-arg=-static-libgcc -C link-arg=-Wl,--build-id=none -C metadata='' --remap-path-prefix=/app=." \
8686
CARGO_INCREMENTAL=0 \
8787
LC_ALL=C \
8888
TZ=UTC \
89-
cargo build --release --locked --features="$FEATURES" --package=${RBUILDER_BIN}
89+
cargo build --release --locked --features="$FEATURES" --package=${RBUILDER_BIN} --target x86_64-unknown-linux-gnu
9090

9191
# Runtime container for rbuilder
9292
FROM gcr.io/distroless/cc-debian12 AS rbuilder-runtime
@@ -99,5 +99,5 @@ ENTRYPOINT ["/app/rbuilder"]
9999
FROM gcr.io/distroless/cc-debian12 AS rbuilder-reproducible-runtime
100100
ARG RBUILDER_BIN
101101
WORKDIR /app
102-
COPY --from=rbuilder-reproducible /app/target/release/${RBUILDER_BIN} /app/rbuilder
102+
COPY --from=rbuilder-reproducible /app/target/x86_64-unknown-linux-gnu/release/${RBUILDER_BIN} /app/rbuilder
103103
ENTRYPOINT ["/app/rbuilder"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ build-reproducible: ## Build the reth binary into `target` directory with reprod
5858
CARGO_INCREMENTAL=${CARGO_INCREMENTAL_VAL} \
5959
LC_ALL=${LOCALE_VAL} \
6060
TZ=${TZ_VAL} \
61-
cargo build -p op-rbuilder --bin op-rbuilder --features "$(FEATURES)" --profile "release" --locked --features "$(FEATURES)"
61+
cargo build -p op-rbuilder --bin op-rbuilder --features "$(FEATURES)" --profile "release" --locked --features "$(FEATURES)" --target x86_64-unknown-linux-gnu
6262

6363
.PHONY: tdx-quote-provider
6464
tdx-quote-provider: ## Build tdx-quote-provider (debug version)

0 commit comments

Comments
 (0)