From 24f4a74018232daa4b4b8c54683434d7190f5d12 Mon Sep 17 00:00:00 2001 From: Nixon Date: Thu, 6 Jun 2024 01:03:04 +0800 Subject: [PATCH] chore: test examples --- .github/workflows/rust.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1f6363f..5ce8eda 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -32,15 +32,6 @@ jobs: - run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - run: cargo check --workspace --no-default-features - check-examples: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - - run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - - run: cargo check --examples - clippy: runs-on: ubuntu-latest steps: @@ -80,4 +71,12 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - run: cargo test --workspace --all-features --doc - + + test-examples: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev + - run: cargo test --examples