-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
29 lines (21 loc) · 1013 Bytes
/
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
set windows-shell := ["powershell.exe", "-c"]
export RUST_BACKTRACE := "full"
DIR := justfile_directory()
PLAYGROUND_NAME := "wasm2spirv-playground"
clean:
cargo clean
rm -rf examples/out/*
doc:
cargo +nightly rustdoc --lib --open --all-features -- --cfg docsrs
cli *ARGS:
cargo run --bin wasm2spirv --all-features -- {{ARGS}}
test TEST *ARGS:
zig build-lib examples/{{TEST}}/{{TEST}}.zig -target wasm32-freestanding -O ReleaseSmall -femit-bin=examples/out/{{TEST}}.wasm -dynamic -rdynamic
just cli khronos-all examples/out/{{TEST}}.wasm --from-json examples/{{TEST}}/{{TEST}}.json -o examples/out/{{TEST}}.spv {{ARGS}}
test-wat TEST *ARGS:
just cli khronos-all examples/{{TEST}}/{{TEST}}.wat --from-json examples/{{TEST}}/{{TEST}}.json -o examples/out/{{TEST}}.spv {{ARGS}}
test-publish *ARGS:
cargo publish --dry-run --allow-dirty {{ARGS}}
playground:
docker build --tag {{PLAYGROUND_NAME}} -f {{DIR}}/playground/Dockerfile {{DIR}}
docker run {{PLAYGROUND_NAME}}