Skip to content

Merge pull request #7 from fornwall/bump-ndk-for-docs #15

Merge pull request #7 from fornwall/bump-ndk-for-docs

Merge pull request #7 from fornwall/bump-ndk-for-docs #15

Workflow file for this run

name: Docs
on:
push:
branches:
- main
jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: aarch64-linux-android
profile: minimal
override: true
components: rust-docs
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r23c
- uses: actions-rs/cargo@v1
with:
command: install
args: cargo-ndk
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: docs-${{ hashFiles('**/Cargo.toml') }}
- name: Generate docs
uses: actions-rs/cargo@v1
with:
command: ndk
args: --target=arm64-v8a doc --no-deps --all-features
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
RUSTDOCFLAGS: --cfg=docsrs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/aarch64-linux-android/doc
publish_branch: docs