diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8223ffac..57dad0da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,17 +17,6 @@ jobs: - name: Check Formatting run: cargo fmt -- --check - docsrs: - name: Check building on docs.rs - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@nightly - - name: Check Formatting - run: cargo doc --no-deps --features=rwh_04,rwh_05,rwh_06,serde,mint,android-native-activity - env: - RUSTDOCFLAGS: '--cfg=docsrs --deny=warnings' - tests: name: Test ${{ matrix.toolchain }} ${{ matrix.platform.name }} runs-on: ${{ matrix.platform.os }} @@ -162,6 +151,12 @@ jobs: matrix.toolchain != '1.70.0' run: cargo $CMD test $OPTIONS --features serde + - name: Check docs.rs documentation + if: matrix.toolchain == 'nightly' + run: cargo doc --no-deps --features=rwh_04,rwh_05,rwh_06,serde,mint,android-native-activity + env: + RUSTDOCFLAGS: '--cfg=docsrs --deny=warnings' + # See restore step above - name: Save cache of cargo folder uses: actions/cache/save@v3