Skip to content

Commit

Permalink
Have CI build with doc_auto_cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Oct 17, 2024
1 parent fb3fadb commit bbe014c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ on:
push:
branches:
- "develop"
paths:
- "docs/**"

workflow_dispatch:

Expand Down Expand Up @@ -65,11 +63,17 @@ jobs:
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
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
run: |
rustup update stable
cargo doc --workspace --no-deps --all-features
rustup toolchain install ${{ steps.nightly.outputs.version }} --profile minimal -c doc
RUSTDOCFLAGS="--cfg docsrs" cargo +${{ steps.nightly.outputs.version }} doc --workspace --no-deps --all-features
mv target/doc docs/_site/rust
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit bbe014c

Please sign in to comment.