Skip to content

Commit f955221

Browse files
authored
Add ignore and no_run to get cargo test to pass. (#1101)
* Add changelog entry and failing CI. * Add ignore and no_run to get `cargo test` to pass.
1 parent f003cc1 commit f955221

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.github/workflows/ci.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ jobs:
8888
if: ${{ matrix.target != 'aarch64-linux-android' }}
8989
run: cargo run -p compiletests --release --no-default-features --features "use-installed-tools" -- --target-env vulkan1.1,vulkan1.2,spv1.3
9090

91+
- name: workspace test
92+
if: ${{ matrix.target != 'aarch64-linux-android' }}
93+
run: cargo test --release
94+
9195
# Examples
9296
- name: cargo check examples
9397
if: ${{ matrix.target != 'aarch64-linux-android' }}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
## [Unreleased]
3131

3232
### Changed 🛠
33+
- [PR#1101](https://github.com/EmbarkStudios/rust-gpu/pull/1101) Add `ignore` and `no_run` to documentation to make `cargo test` pass.
3334
- [PR#1112](https://github.com/EmbarkStudios/rust-gpu/pull/1112) updated wgpu and winit in example runners
3435
- [PR#1100](https://github.com/EmbarkStudios/rust-gpu/pull/1100) updated toolchain to `nightly-2023-09-30`
3536
- [PR#1091](https://github.com/EmbarkStudios/rust-gpu/pull/1091) updated toolchain to `nightly-2023-08-29`

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ However, many things aren't implemented yet. That means that while being technic
3434

3535
![Sky shader](docs/assets/sky.jpg)
3636

37-
```rust
37+
```rust,no_run
3838
use glam::{Vec3, Vec4, vec2, vec3};
3939
4040
#[spirv(fragment)]

crates/spirv-builder/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It takes care of pulling in the `SPIR-V` backend for Rust, `rustc_codegen_spirv`
1010

1111
## Example
1212

13-
```rust
13+
```rust,no_run
1414
use spirv_builder::{MetadataPrintout, SpirvBuilder};
1515
1616
fn main() -> Result<(), Box<dyn std::error::Error>> {
@@ -23,7 +23,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2323

2424
This example will build a shader crate called `my_shaders`. You typically insert this code in your crate's `build.rs` that requires the shader binary. The path to the shader module's binary will be set in the `my_shaders.spv` environment variable, which you can include in your project using something along the lines of:
2525

26-
```rust
26+
```rust,ignore
2727
const SHADER: &[u8] = include_bytes!(env!("my_shaders.spv"));
2828
```
2929

crates/spirv-std/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This crate gives a `rust-gpu` shader access to the required `#![spirv(..)]` attr
1010

1111
Here is a small excerpt to see what a shader would look like. See [source][source] for full details of the shader that generates above image.
1212

13-
```rust,no_run
13+
```rust,ignore
1414
use spirv_std::spirv;
1515
use glam::{Vec3, Vec4, vec2, vec3};
1616

0 commit comments

Comments
 (0)