-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
67 lines (52 loc) · 2.3 KB
/
Makefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#.PHONY: push-docker build-docker build-docker-from-local
TOP_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
## get the latest commit hash in the short form
#COMMIT := $(shell git rev-parse --short HEAD)
#REPOSITORY := aresprotocollab/ares_gladios
# all of above variables, could be overrode by .env
ifneq (,$(wildcard ./.env))
include .env
export
endif
#push-docker:
# docker tag ${REPOSITORY}:${COMMIT} ${REPOSITORY}:latest
# docker push ${REPOSITORY}:${COMMIT}
# docker push ${REPOSITORY}:latest
#
#build-docker:
# docker build --build-arg NGINX_CONF=${NGINX_CONF} --build-arg ENV_CONFIG=${BUILDER_CONFIGURATION} -t ${REPOSITORY}:${COMMIT} -f Dockerfile .
.PHONY: run
run:
cargo run -- --dev -lruntime=debug --instant-sealing
.PHONY: run-gladios
run-gladios:
cargo run -- --chain=gladios
run-odyssey:
cargo run -- --chain=odyssey
.PHONY: build-release
build-release:
# cargo build --locked --features with-all-runtime --profile production --workspace
cargo build --features with-all-runtime --profile production --workspace
.PHONY: build-gladios
build-gladios:
cargo build --features with-gladios-runtime --bin ares-node --profile production --workspace
# cargo build --locked --features with-gladios-runtime --bin ares-node --profile production --workspace
.PHONY: build-odyssey
build-odyssey:
cargo build --locked --features with-odyssey-runtime --bin ares-node --profile production --workspace
.PHONY: build-pioneer
build-pioneer:
cargo build --locked --features with-pioneer-runtime --bin ares-node --profile production --workspace
# cargo build --features with-pioneer-runtime --bin ares-node --profile production --workspace
.PHONY: build-pioneer-benchmarks
build-pioneer-benchmarks:
cargo build --features runtime-benchmarks,with-pioneer-runtime --profile production --workspace
.PHONY: build-gladios-fast
build-gladios-fast:
cargo build --locked --features with-gladios-runtime,with-gladios-fast-runtime --bin ares-node --profile production --workspace
.PHONY: build-odyssey-fast
build-odyssey-fast:
cargo build --locked --features with-odyssey-runtime,with-odyssey-fast-runtime --bin ares-node --profile production --workspace
.PHONY: build-pioneer-fast
build-pioneer-fast:
cargo build --locked --features with-pioneer-runtime,with-pioneer-fast-runtime --bin ares-node --profile production --workspace