From b48d5896b0fef1508f42b414f1ce53062dfbe6c8 Mon Sep 17 00:00:00 2001 From: Odonno Date: Mon, 26 Feb 2024 20:53:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20fix=20and=20prevent=20doc=20buil?= =?UTF-8?q?d=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cargo/config.toml | 1 + .github/workflows/main.yml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 4714cce..f399900 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,6 @@ [build] rustflags = ["--cfg", "surrealdb_unstable"] +rustdocflags = ["--cfg", "surrealdb_unstable"] [net] git-fetch-with-cli = true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 85083be..bc3128a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -82,6 +82,22 @@ jobs: name: code-coverage-report path: cobertura.xml + docs: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 + + - name: Build documentation + run: cargo doc + cargo-deny: name: cargo-deny runs-on: ubuntu-latest