From ca574b75a6d98cf8e8ca32992d248188978cfd12 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Mon, 1 Jan 2024 14:42:30 +0100 Subject: [PATCH] Use both `RUSTFLAGS` *and* `RUSTDOCFLAGS` in CI Turns out that we need to set both env. variables as otherwise the broken_intra_doc_links lint starts complaining. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41949c0..64a1ba5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,8 +35,8 @@ jobs: run: | cargo doc --release cargo doc --no-default-features --features no-std - RUSTDOCFLAGS="--cfg lsps1" cargo doc --release - RUSTDOCFLAGS="--cfg lsps1" cargo doc --no-default-features --features no-std + RUSTFLAGS="--cfg lsps1" RUSTDOCFLAGS="--cfg lsps1" cargo doc --release + RUSTFLAGS="--cfg lsps1" RUSTDOCFLAGS="--cfg lsps1" cargo doc --no-default-features --features no-std - name: Build on Rust ${{ matrix.toolchain }} run: cargo build --verbose --color always - name: Check formatting