-
Notifications
You must be signed in to change notification settings - Fork 6
/
justfile
74 lines (61 loc) · 1.54 KB
/
justfile
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
68
69
70
71
72
73
watch +args='test':
cargo watch --clear --exec '{{args}}'
clippy:
cargo clippy --all --all-targets -- --deny warnings
ci: clippy
cargo fmt -- --check
cargo test --all
cargo run --example simple_sign_verify_encoded
fmt:
cargo fmt --all
doc:
cargo doc --all --open
outdated:
cargo outdated -R --workspace
unused:
cargo +nightly udeps
coverage:
cargo llvm-cov
wasm:
AR=/opt/homebrew/opt/llvm/bin/llvm-ar \
CC=/opt/homebrew/opt/llvm/bin/clang \
wasm-pack build \
--target web \
--out-name bip322 \
www
cp www/pkg/bip322.js www/pkg/bip322_bg.wasm www
serve: wasm
python3 -m http.server -b 127.0.0.1 -d www 8080
locks:
#!/usr/bin/env bash
set -euo pipefail
for file in Cargo-minimal.lock Cargo-recent.lock; do
cp "$file" Cargo.lock
cargo check
cp Cargo.lock "$file"
done
prepare-release revision='master':
#!/usr/bin/env bash
set -euxo pipefail
git checkout {{ revision }}
git pull origin {{ revision }}
echo >> CHANGELOG.md
git log --pretty='format:- %s' >> CHANGELOG.md
$EDITOR CHANGELOG.md
$EDITOR Cargo.toml
version=`sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/\1/p' Cargo.toml | head -1`
cargo check
git checkout -b release-$version
git add -u
git commit -m "Release $version"
gh pr create --web
publish-release revision='master':
#!/usr/bin/env bash
set -euxo pipefail
rm -rf tmp/release
git clone https://github.com/rust-bitcoin/bip322.git tmp/release
cd tmp/release
git checkout {{ revision }}
cargo publish
cd ../..
rm -rf tmp/release