platform icon indicating copy to clipboard operation
platform copied to clipboard

build: reproducible Rust builds

Open QuantumExplorer opened this issue 1 year ago • 0 comments

Issue being fixed or feature implemented

This makes some changes so that we can make reproducible builds.

build process (generally speaking) looks like

docker build -t rust-build-env -f packages/rs-drive-abci/Dockerfile.repro .
docker run --rm -v "$(PWD):/app" -w /app -u "$(shell id -u):$(shell id -g)" \
                rust-build-env \
                cargo build --release --locked

What was done?

How Has This Been Tested?

Breaking Changes

Checklist:

  • [X] I have performed a self-review of my own code
  • [X] I have commented my code, particularly in hard-to-understand areas
  • [X] I have added or updated relevant unit/integration/functional/e2e tests
  • [X] I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • [x] I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • [ ] I have assigned this pull request to a milestone

QuantumExplorer avatar Jul 22 '24 01:07 QuantumExplorer