reproducible-build #88
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: reproducible-build | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: "0 1 */2 * *" | |
jobs: | |
build: | |
name: build reproducible binaries | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: rui314/setup-mold@v1 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
target: x86_64-unknown-linux-gnu | |
- name: Install cargo-cache | |
run: | | |
cargo install cargo-cache | |
- name: Build Reth | |
run: | | |
make build-reth-reproducible | |
mv target/x86_64-unknown-linux-gnu/reproducible/reth reth-build-1 | |
- name: Clean cache | |
run: make clean && cargo cache -a | |
- name: Build Reth again | |
run: | | |
make build-reth-reproducible | |
mv target/x86_64-unknown-linux-gnu/reproducible/reth reth-build-2 | |
- name: Compare binaries | |
run: cmp reth-build-1 reth-build-2 |