diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d979961 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI +on: [push, pull_request] + +jobs: + cargo-check: + name: Cargo check all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - run: cargo check --all-targets + cargo-test: + name: Cargo test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - run: cargo test diff --git a/Cargo.toml b/Cargo.toml index 43788cd..63e786c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ include = ["/Cargo.toml", "/LICENSE", "/README.md", "/src/**"] [dependencies] syn = { version = "2.0", features = ["full"] } -naga = { version = "0.12", features = ["wgsl-in", "wgsl-out"] } +naga = { version = "0.13", features = ["wgsl-in", "wgsl-out"] } naga-to-tokenstream = "0.1" proc-macro2 = "1.0" quote = "1.0" diff --git a/README.md b/README.md index e719b19..a995dbf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # WGSL Inline [![crates.io](https://img.shields.io/crates/v/wgsl-inline.svg)](https://crates.io/crates/wgsl-inline) -[![docs.rs](https://img.shields.io/docsrs/wgsl-inline)](https://docs.rs/wgsl-inline/latest/wgsl-inline/) +[![docs.rs](https://img.shields.io/docsrs/wgsl-inline)](https://docs.rs/wgsl-inline/latest/wgsl_inline/) [![crates.io](https://img.shields.io/crates/l/wgsl-inline.svg)](https://github.com/LucentFlux/wgsl-inline/blob/main/LICENSE) WGSL Inline adds a macro, `wgsl!`, which takes WGSL sourcecode and validates it, reporting any errors to the Rust compiler.