-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
50 lines (38 loc) · 1.26 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
.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
--execute-try-runtime:
RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=info \
cargo build --release --features=parachain,try-runtime,force-debug
try-runtime \
--runtime=${RUNTIME_PATH} \
on-runtime-upgrade \
--checks=all \
live \
--uri=${TRYRUNTIME_URL}
try-runtime-upgrade-battery-station:
@$(MAKE) TRYRUNTIME_URL="wss://bsr.zeitgeist.pm:443" \
RUNTIME_PATH="./target/release/wbuild/battery-station-runtime/battery_station_runtime.compact.compressed.wasm" \
-- \
--execute-try-runtime
try-runtime-upgrade-zeitgeist:
@$(MAKE) TRYRUNTIME_URL="wss://zeitgeist.api.onfinality.io:443/public-ws" \
RUNTIME_PATH="./target/release/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.compressed.wasm" \
-- \
--execute-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