From 4d7e879c8cf81164c0babea1dafefebf0fecfb79 Mon Sep 17 00:00:00 2001 From: Multirious Date: Tue, 26 Mar 2024 11:22:56 +0700 Subject: [PATCH] Update CI workflow --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96627e9..640f6d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,13 @@ env: CARGO_TERM_COLOR: always jobs: - build: + check_build_test: strategy: matrix: os: [windows-latest, ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} + env: + RUSTDOCFLAGS: -D warnings steps: - uses: actions/checkout@v4 @@ -31,8 +33,8 @@ jobs: target/ key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.toml') }} - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@nightly - name: Install dependencies if: runner.os == 'linux' @@ -44,6 +46,9 @@ jobs: - name: Check all features run: cargo check-all-features + - name: Check docs + run: cargo +nightly doc --no-deps + - name: Check all examples run: cargo check --example '*'