Skip to content

Commit

Permalink
Fix missing target in docs.rs test (#3358)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Jan 4, 2024
1 parent ea1bfd2 commit ac247cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:

# Faster compilation and error on warnings
RUSTFLAGS: '--codegen=debuginfo=0 --deny=warnings ${{ matrix.platform.rustflags }}'
RUSTDOCFLAGS: '--deny=warnings ${{ matrix.platform.rustflags }}'

OPTIONS: --target=${{ matrix.platform.target }} ${{ matrix.platform.options }}
CMD: ${{ matrix.platform.cmd }}
Expand Down Expand Up @@ -122,6 +121,8 @@ jobs:

- name: Check documentation
run: cargo doc --no-deps $OPTIONS --document-private-items
env:
RUSTDOCFLAGS: '--deny=warnings ${{ matrix.platform.rustflags }}'

- name: Build crate
run: cargo $CMD build $OPTIONS
Expand Down Expand Up @@ -162,9 +163,9 @@ jobs:

- 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
run: cargo doc --no-deps $OPTIONS --features=rwh_04,rwh_05,rwh_06,serde,mint,android-native-activity
env:
RUSTDOCFLAGS: '--cfg=docsrs --deny=warnings'
RUSTDOCFLAGS: '--deny=warnings ${{ matrix.platform.rustflags }} --cfg=docsrs'

# See restore step above
- name: Save cache of cargo folder
Expand Down

0 comments on commit ac247cd

Please sign in to comment.