Skip to content

Commit 4a2ec6b

Browse files
authored
Fix issues with docs in CI (#129)
* Use `--no-deps` in `cargo doc` in `.github/workflows/rust-checks.yaml` * Install `clang llvm-dev libclang-dev` deps in `.github/workflows/rust-docs.yaml`
1 parent 50e527e commit 4a2ec6b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/rust-checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
sudo apt-get update
3737
sudo apt-get install -y clang llvm-dev libclang-dev
3838
- name: cargo doc
39-
run: RUSTFLAGS="-D warnings" cargo doc --locked
39+
run: RUSTFLAGS="-D warnings" cargo doc --locked --no-deps
4040

4141
fmt:
4242
runs-on: ubuntu-latest

.github/workflows/rust-docs.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
with:
1919
version: "3.6.1"
2020

21+
- name: Install deps for build
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y clang llvm-dev libclang-dev
25+
2126
- uses: actions/checkout@v4
2227
- name: Install Rust Stable
2328
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)