Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reproducible builds #267

Merged
merged 19 commits into from
Mar 11, 2024
Merged

Add reproducible builds #267

merged 19 commits into from
Mar 11, 2024

Conversation

phklive
Copy link
Contributor

@phklive phklive commented Mar 11, 2024

This improves the reliability of the builds for the miden-node enabling more consistency and reproducibility.

closes: #251

@phklive phklive changed the title Phklive reproducible builds Add reproducible builds Mar 11, 2024
@phklive
Copy link
Contributor Author

phklive commented Mar 11, 2024

@hackaugusto for now we are not using the matrix capabilities in the CI. Should we still keep the matrix structure for future proofing or should we switch to a simpler CI structure?

@hackaugusto
Copy link
Contributor

@hackaugusto for now we are not using the matrix capabilities in the CI. Should we still keep the matrix structure for future proofing or should we switch to a simpler CI structure?

I don't mind either way.

@phklive
Copy link
Contributor Author

phklive commented Mar 11, 2024

@hackaugusto for now we are not using the matrix capabilities in the CI. Should we still keep the matrix structure for future proofing or should we switch to a simpler CI structure?

I don't mind either way.

Removed the matrix to simplify CI for now

@phklive phklive requested a review from polydez March 11, 2024 14:02
@phklive phklive marked this pull request as ready for review March 11, 2024 14:03
@phklive phklive changed the base branch from main to next March 11, 2024 14:13
@phklive phklive requested a review from hackaugusto March 11, 2024 14:14
@phklive phklive changed the base branch from next to main March 11, 2024 17:31
Copy link
Contributor

@hackaugusto hackaugusto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@phklive phklive merged commit 0eac45c into main Mar 11, 2024
4 checks passed
@phklive phklive deleted the phklive-reproducible-builds branch March 11, 2024 17:47
Comment on lines 9 to +11
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Cargo.lock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment still relevant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will remove it.

@@ -0,0 +1 @@
1.75
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably set MSRV in the workspace Cargo.toml file and I'm curious if there is a way to ensure that one and this one are in sync.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add it to the cargo.toml, i can check but I do not think that there is a standard way to check that both versions match.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After doing a quick research i have not found a standard way of checking that all crates match the version of the rust-toolchain file. Hence decided to create a PR to address that and fix your comments:
#272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reproducible Build
3 participants