Skip to content

Commit 833e90e

Browse files
authored
add new CI step for documentation checking (#51)
1 parent b2666f3 commit 833e90e

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,23 @@ jobs:
8181
- uses: actions-rs/cargo@v1
8282
with:
8383
command: test
84-
args: --workspace --features=lua54,rhai,teal,lua_script_api,rhai_script_api
84+
args: --workspace --features=lua54,rhai,teal,lua_script_api,rhai_script_api
85+
docs:
86+
name: Docs
87+
runs-on: ubuntu-latest
88+
steps:
89+
- name: Install alsa and udev
90+
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
91+
- uses: actions/checkout@v2
92+
- uses: actions-rs/toolchain@v1
93+
with:
94+
toolchain: stable
95+
override: true
96+
- uses: Swatinem/rust-cache@v2.2.0
97+
- name: Find docs.rs features
98+
run: echo "DOCS_FEATURES=$(cargo metadata --no-deps | python -c "import sys,json; [print(','.join(x['metadata']['docs.rs']['features'])) for x in json.load(sys.stdin)['packages'] if x['name'] == 'bevy_mod_scripting']")" >> $GITHUB_OUTPUT
99+
id: features
100+
- uses: actions-rs/cargo@v1
101+
with:
102+
command: doc
103+
args: --workspace --features=${{ steps.features.outputs.DOCS_FEATURES }}

0 commit comments

Comments
 (0)