-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (27 loc) Β· 896 Bytes
/
justfile
File metadata and controls
31 lines (27 loc) Β· 896 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
# Run tests
test:
@echo 'π¬ Running tests...'
cargo test --locked
@echo 'β
Tests completed.'
# Run clippy
clippy:
@echo 'π Running clippy...'
cargo clippy --all-targets -- -D warnings
@echo 'β
Clippy completed.'
# Run fmt
fmt:
@echo 'π Running fmt...'
cargo fmt --all -- --check
@echo 'β
Fmt completed.'
# Run checks required by github repo.
default-flow: fmt clippy test
# Run workspace optimizer
image := if arch() =~ "aarch64" {"cosmwasm/workspace-optimizer-arm64:0.12.12"} else {"cosmwasm/workspace-optimizer:0.12.12"}
optimize:
@echo 'π Running build optimizer...'
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/arm64 \
{{image}}
@echo 'β
Optimized build completed.'