mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Add dependency on serialize for Rosetta tests (#150)
* Add dependency on serialize for Rosetta tests Fixes #149 * Also run default cargo test on CI
This commit is contained in:
5
.github/workflows/pipeline.yml
vendored
5
.github/workflows/pipeline.yml
vendored
@@ -13,6 +13,11 @@ jobs:
|
||||
toolchain: stable
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
name: Default test
|
||||
with:
|
||||
command: test
|
||||
- uses: actions-rs/cargo@v1
|
||||
name: Test all features
|
||||
with:
|
||||
command: test
|
||||
args: --all-features
|
||||
|
||||
@@ -15,7 +15,7 @@ mod parser;
|
||||
mod parser_tests;
|
||||
mod token;
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg(all(test, feature = "serialize"))]
|
||||
mod rosetta_tests;
|
||||
|
||||
pub fn parse_str(source: &str, entry: String, stage: ShaderStage) -> Result<Module, ParseError> {
|
||||
|
||||
@@ -7,7 +7,7 @@ pub mod glsl_new;
|
||||
#[cfg(feature = "spirv-in")]
|
||||
pub mod spv;
|
||||
pub mod wgsl;
|
||||
#[cfg(test)]
|
||||
#[cfg(all(test, feature = "serialize"))]
|
||||
mod wgsl_rosetta_tests;
|
||||
|
||||
use crate::arena::Arena;
|
||||
|
||||
Reference in New Issue
Block a user