Actually fail CI for doc warnings
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 1bd88df..4538ca8 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -7,6 +7,11 @@
- staging
- trying
+env:
+ RUSTFLAGS: -D warnings
+ RUSTUP_MAX_RETRIES: 10
+ CARGO_NET_RETRY: 10
+
jobs:
rust:
name: Rust
@@ -17,11 +22,6 @@
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
- env:
- RUSTFLAGS: -D warnings
- RUSTUP_MAX_RETRIES: 10
- CARGO_NET_RETRY: 10
-
steps:
- name: Checkout repository
uses: actions/checkout@v2
@@ -39,11 +39,6 @@
name: Docs
runs-on: ubuntu-latest
- env:
- RUSTFLAGS: -D warnings
- RUSTUP_MAX_RETRIES: 10
- CARGO_NET_RETRY: 10
-
steps:
- name: Checkout repository
uses: actions/checkout@v2
@@ -53,6 +48,7 @@
with:
toolchain: nightly
profile: minimal
+ override: true
- name: Rustdoc
- run: cargo doc --all-features
+ run: cargo rustdoc --all-features -- -D warnings