Have CI build with doc_auto_cfg

This commit is contained in:
Luke Parker 2024-10-17 17:47:31 -04:00
parent fb3fadb3d3
commit bbe014c3a7
No known key found for this signature in database

View file

@ -27,8 +27,6 @@ on:
push: push:
branches: branches:
- "develop" - "develop"
paths:
- "docs/**"
workflow_dispatch: workflow_dispatch:
@ -65,11 +63,17 @@ jobs:
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env: env:
JEKYLL_ENV: production JEKYLL_ENV: production
- name: Get nightly version to use
id: nightly
shell: bash
run: echo "version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT
- name: Buld Rust docs - name: Buld Rust docs
run: | run: |
rustup update stable rustup toolchain install ${{ steps.nightly.outputs.version }} --profile minimal -c doc
cargo doc --workspace --no-deps --all-features RUSTDOCFLAGS="--cfg docsrs" cargo +${{ steps.nightly.outputs.version }} doc --workspace --no-deps --all-features
mv target/doc docs/_site/rust mv target/doc docs/_site/rust
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with: