blob: ab37ce6cbb2fba7ad7b9fccbd77ede635ffa40ba (
plain)
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
|
# Build nova all-in-one bin
all:
# Creates bin folder for artifacts
@mkdir -p build/bin
@mkdir -p build/lib
@echo "Using cc, go, rust and ld versions"
cc -v
go version
rustc --version
ld -v
# Builds rust
@echo "Building rust project"
cargo build --release
@cp target/release/liball_in_one.a build/lib/
@cp target/release/cache build/bin/
@cp target/release/gateway build/bin/
@cp target/release/ratelimit build/bin/
@cp target/release/rest build/bin/
@cp target/release/webhook build/bin/
# Builds go
go build -a -ldflags '-s' -o build/bin/nova cmd/nova/nova.go
@echo "Build nova all-in-one successfully"
@echo "Here nova artifcats"
ls build/bin
docker-images:
docker-compose build
docker-push:
docker-compose push
rust-test:
cargo test
test: rust-test
.PHONY: all docker-images docker-push test rust-test
|