forked from zeitgeistpm/zeitgeist
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
55 lines (43 loc) · 1.35 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
.PHONY: $(MAKECMDGOALS)
run:
SKIP_WASM_BUILD= cargo run -- --dev --execution=Native -lruntime=debug
toolchain:
./scripts/init.sh
build-wasm:
WASM_BUILD_TYPE=release cargo build
check:
SKIP_WASM_BUILD= cargo check --tests --all
check-dummy:
BUILD_DUMMY_WASM_BINARY= cargo check
# Pseudo private target is invoked by public targets for different chains
--try-runtime:
RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \
cargo run \
--bin=zeitgeist \
--features=parachain,try-runtime \
try-runtime \
--chain=${TRYRUNTIME_CHAIN} \
--runtime=${RUNTIME_PATH} \
on-runtime-upgrade \
--checks=all \
live \
--uri=${TRYRUNTIME_URL}
try-runtime-upgrade-battery-station:
@$(MAKE) TRYRUNTIME_CHAIN="battery_station_staging" \
TRYRUNTIME_URL="wss://bsr.zeitgeist.pm:443" \
RUNTIME_PATH="./target/debug/wbuild/battery-station-runtime/battery_station_runtime.compact.compressed.wasm" \
-- \
--try-runtime
try-runtime-upgrade-zeitgeist:
@$(MAKE) TRYRUNTIME_CHAIN="zeitgeist_staging" \
TRYRUNTIME_URL="wss://zeitgeist-rpc.dwellir.com:443" \
RUNTIME_PATH="./target/debug/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.compressed.wasm" \
-- \
--try-runtime
build:
SKIP_WASM_BUILD= cargo build
build-production:
SKIP_WASM_BUILD= cargo build --profile=production
purge:
target/debug/zeitgeist purge-chain --dev -y
restart: purge run