Skip to content

Improve handling/logging for Android builds (#563) #164

Improve handling/logging for Android builds (#563)

Improve handling/logging for Android builds (#563) #164

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
tags:
- v1.*
env:
RUST_BACKTRACE: 1
# We can pin the version if nightly is too unstable.
# Otherwise, we test against the latest version.
RUST_NIGHTLY_TOOLCHAIN: nightly
jobs:
deploy-user-guide:
if: github.repository == 'aws/aws-lc-rs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
submodules: 'recursive'
- name: Install Nightly Rust Toolchain
uses: dtolnay/rust-toolchain@master
id: toolchain
with:
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
- name: Set Rust toolchain override
run: rustup override set ${{ steps.toolchain.outputs.name }}
- uses: actions/setup-go@v4
with:
go-version: '>=1.18'
- name: Build and Test User Guide
run: |
curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar xz
./mdbook build book
./mdbook test book
- name: Build Documentation
run: cargo doc --features fips,unstable --no-deps --workspace
- name: Copy docs
run: |
mkdir -p book/book/rustdocs/${{ github.ref_name }}
cp --recursive target/doc -t book/book/rustdocs/${{ github.ref_name }}
- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: book/book