-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
37 lines (25 loc) · 1.17 KB
/
justfile
File metadata and controls
37 lines (25 loc) · 1.17 KB
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
set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
clean:
cargo clean; rm -r retto-core/models; rm -r retto-wasm/fe/retto_wasm.*; rm -r retto-wasm/fe/*.tgz; rm -r retto-wasm/fe/dist; rm -r retto-wasm/fe/node_modules
setup:
rustup toolchain install nightly --profile complete
rustup target add wasm32-unknown-emscripten --toolchain nightly
check: fmt-check clippy-check build-check test-check
fmt-check: setup
cargo +nightly fmt --all -- --check
clippy-check: setup
cargo +nightly clippy --locked --all-targets -- --deny warnings
build-check: setup
cargo +nightly check --locked --all-targets --all-features
test-check: setup
cargo +nightly test --locked --all-targets --all-features
build-cli: setup
cargo build -p retto-cli --features "hf-hub" --release
build-wasm-lib: setup
cd retto-wasm && cargo +nightly build --target wasm32-unknown-emscripten --release
build-wasm-fe: setup
cp target/wasm32-unknown-emscripten/release/retto_wasm.* retto-wasm/fe
cd retto-wasm/fe && pnpm i && pnpm build && pnpm pack
build-wasm: build-wasm-lib build-wasm-fe
publish-wasm-fe:
cd retto-wasm/fe && pnpm publish --access public --no-git-checks