Skip to content

Commit

Permalink
Test all docs.rs deployments (#3356)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Jan 4, 2024
1 parent 42dbc47 commit 178f5fd
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 178f5fd

Please sign in to comment.