-
Notifications
You must be signed in to change notification settings - Fork 41
Add Makefile #1150
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 Makefile #1150
Conversation
44af5d3 to
40e9590
Compare
40e9590 to
31c2511
Compare
335d007 to
8ed9f08
Compare
0xMimir
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but check comments
| build: ## Build the project in debug mode | ||
| cargo build | ||
|
|
||
| .PHONY: build-release | ||
| build-release: ## Build the project in release mode | ||
| cargo build --release --bin openmina |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a small nitpick here, but build builds the entire project, while build-release builds only openmina executable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, lemme fix this.
| build-wasm: ## Build WebAssembly node | ||
| cd node/web && cargo +nightly build --release --target wasm32-unknown-unknown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will build the openmina-node-web library but will not produce code needed to run the webnode for that following command should be used
wasm-pack build --target web --out-dir pkg8ed9f08 to
5b121e9
Compare
5b121e9 to
a97c216
Compare
We want to have a centralized reference for all the commands the CI runs, so the user can replicate exactly the CI behavior on their machine.