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 central Makefile which builds/tests everything #458

Merged
merged 3 commits into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.PHONY: all
all: c csharp go java nim nodejs python rust

.PHONY: c
c:
@make -C src

.PHONY: csharp
csharp:
@make -C bindings/csharp

.PHONY: go
go:
@cd bindings/go && go clean -cache && go test

.PHONY: java
java:
@make -C bindings/java build test

.PHONY: nim
nim:
@cd bindings/nim && nim test

.PHONY: nodejs
nodejs:
@make -C bindings/node.js

.PHONY: python
python:
@make -C bindings/python

.PHONY: rust
rust:
@cargo test --features generate-bindings
@cargo bench --no-run
Copy link
Contributor

Choose a reason for hiding this comment

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

I was not expecting to see the benches getting run. I thought this would just build and run tests.
No strong opinion.
(PR LGTM other than this)

Copy link
Member Author

Choose a reason for hiding this comment

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

This doesn't run the benchmarks, just builds them; see the --no-run flag.

But this did remind me to disable benchmarks for Java bindings. Thanks!

@cd fuzz && cargo build
Loading