Don't test on MSRV, just check

This commit is contained in:
Dzmitry Malyshau 2022-02-15 22:07:45 -05:00
parent c524a6beac
commit 91990298b3
3 changed files with 9 additions and 3 deletions

View File

@ -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:

View File

@ -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"] }

View File

@ -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 -- $< $@