Skip to content

Commit a596eed

Browse files
ci: Build and check docs.
1 parent 86232a8 commit a596eed

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: .github/workflows/ci.yml

+20
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,23 @@ jobs:
6868

6969
- name: cargo build
7070
run: cargo build --target aarch64-apple-ios --all-targets --workspace
71+
72+
build-doc:
73+
name: cargo docs-rs
74+
runs-on: ubuntu-22.04
75+
env:
76+
RUSTDOCFLAGS: -Dwarnings
77+
steps:
78+
- uses: actions/checkout@v4
79+
- uses: dtolnay/rust-toolchain@master
80+
with:
81+
toolchain: nightly
82+
- uses: dtolnay/install@cargo-docs-rs
83+
- name: install dependencies
84+
run: |
85+
if [ "$RUNNER_OS" == "Linux" ]; then
86+
sudo apt update
87+
sudo apt install pkg-config libjavascriptcoregtk-4.0-dev
88+
fi
89+
shell: bash
90+
- run: cargo docs-rs

0 commit comments

Comments
 (0)