Skip to content

Commit 09b90c6

Browse files
Merge pull request #20 from jjyr/support-reproducible-build
feat: Add docker-build command to reproducible build
2 parents 52187b0 + 7a2fa64 commit 09b90c6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,9 @@ CHECKSUM_FILE := build/checksums-$(MODE).txt
112112
checksum: build
113113
sha256sum build/$(MODE)/* > $(CHECKSUM_FILE)
114114

115-
.PHONY: build test check clippy fmt cargo clean prepare checksum
115+
# Docker reproducible build
116+
docker-build:
117+
docker run --rm -v `pwd`:/code docker.io/xxuejie/rust-n-llvm@sha256:71e98a25eb0350c779cdea18c296d101c4ddc375b8fd96531b63f3105ca64ca2 bash -c "cd /code; make checksum MODE=release CHECKSUM_FILE=checksums.txt"
118+
sha256sum -c checksums.txt
119+
120+
.PHONY: build test check clippy fmt cargo clean prepare checksum docker-build

Diff for: checksums.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
6bbea4820329050e1fc65f9c15cab5948b824c73aa3430d7d92b793c53ca66b6 build/release/can-update-without-ownership-lock
2+
0294cac1087e4145bf407c4675c239cf3aac54f002b117f733aab1bebea8e64e build/release/ckb-bitcoin-spv-type-lock

0 commit comments

Comments
 (0)