-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 792 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.PHONY: all vendor build build-release clean format setup install-deps shell release
all: build
vendor:
cargo update
cargo vendor +stable-aarch64-apple-darwin --locked
cargo vendor +x86_64-unknown-linux-musl --locked
build:
dune build
cargo build
build-release:
dune build --profile=release
cargo build --release
clean:
dune clean
cargo clean
format:
dune build @fmt --auto-promote
cargo fmt -- --check
# Should install rust also!
setup:
opam update -y
opam switch create . --with-dev-setup -y
install-deps:
opam install . --deps-only --with-dev-setup -y
install:
opam install . -y
shell:
nix develop .
release: vendor build-release
# helpful for testing pyroscope integration
.PHONY: pyroscope
pyroscope:
docker run --rm -it -p 4040:4040 grafana/pyroscope:latest