mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-26 07:52:05 +03:00
36 lines
906 B
YAML
36 lines
906 B
YAML
name: Rust docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
book:
|
|
name: Build and Deploy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Rust
|
|
uses: hecrj/setup-rust-action@v1
|
|
|
|
- name: Update apt
|
|
run: sudo apt-get update
|
|
- name: Install ALSA
|
|
run: sudo apt-get install libasound2-dev
|
|
|
|
- name: Generate rustdoc
|
|
run: |
|
|
cargo doc --no-deps --workspace --exclude widgetry --document-private-items
|
|
cd widgetry
|
|
cargo doc --no-deps --document-private-items --features native-backend
|
|
cd ..
|
|
mkdir -p book/book
|
|
mv target/doc book/book/rustdoc
|
|
|
|
- name: Publish HTML
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./book/book/
|