diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 459c08c..5665f3c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,7 +19,7 @@ jobs: run: cargo check test: - name: Test Suite + name: Test strategy: matrix: os: [windows-latest, ubuntu-latest, macos-latest] @@ -31,8 +31,11 @@ jobs: - name: Install alsa and udev run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev if: runner.os == 'linux' - - name: Run cargo test - run: cargo test + - name: Run unit tests + run: cargo test --tests + # TODO: Fix doctests and CI + # - name: Build doctests + # run: cargo test --doc lints: name: Lints @@ -40,6 +43,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - name: Install alsa and udev + run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - name: Run cargo fmt run: cargo fmt --all -- --check - name: Run cargo clippy diff --git a/src/systems.rs b/src/systems.rs index ca2b07d..a04a6c1 100644 --- a/src/systems.rs +++ b/src/systems.rs @@ -50,7 +50,7 @@ pub fn init_camera( let size = get_viewport_size(&window.resolution, *scaling, *smoothing); // This is the texture that will be rendered to. - let mut image = Image { + let mut image = Imae { texture_descriptor: TextureDescriptor { label: None, size,