diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index d7f84efda5..8f687e169a 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -26,10 +26,12 @@ jobs: - uses: actions-rs/cargo@v1 name: Test all features with: + # we could use `test` but `criterion` is a dev dependency, + # and it doesn't build with our MSRV + command: check # `cli` already enables most features, so let's add the rest, # except for `arbitrary`, which requires Rust-1.51 - command: test - args: --workspace --features serialize,deserialize + args: --workspace - name: Check snapshots run: git diff --exit-code -- tests/out test: diff --git a/Cargo.toml b/Cargo.toml index 62d306c432..13a385d5d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,7 +64,7 @@ hexf-parse = { version = "0.2.1", optional = true } [dev-dependencies] bincode = "1" -criterion = { version = "0.3", features = ["html_reports"] } +criterion = { version = "0.3", features = [] } diff = "0.1" ron = "0.7" serde = { version = "1.0", features = ["derive"] } diff --git a/Makefile b/Makefile index 841f077a82..4622fdbb5d 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,10 @@ all: clean: rm *.metal *.air *.metallib *.vert *.frag *.comp *.spv +bench: + #rm -Rf target/criterion + cargo bench + %.metal: $(SNAPSHOTS_BASE_IN)/%.wgsl $(wildcard src/*.rs src/**/*.rs examples/*.rs) cargo run --features wgsl-in,msl-out -- $< $@