Revert -ffile-prefix-map
usage w/ CMake (#526)
#143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |