Unverified Commit bcfabede authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Fix rustdoc CI (#3395)

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 4187b639
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -27,9 +27,11 @@ concurrency:
  cancel-in-progress: true

env:
  apt_dependencies: libssl-dev gnuplot jq
  java_version: 11
  rust_toolchain_components: clippy,rustfmt
  apt_dependencies: libssl-dev gnuplot jq
  rust_nightly_version: nightly-2023-10-10

jobs:
  generate-diff:
    runs-on: smithy_ubuntu-latest_8-core
@@ -98,7 +100,7 @@ jobs:
        java-version: ${{ env.java_version }}
    - uses: dtolnay/rust-toolchain@master
      with:
        toolchain: nightly
        toolchain: ${{ env.rust_nightly_version }}
    - name: Generate doc preview
      id: generate-preview
      # Only generate three of the smallest services since the doc build can be very large. STS and SSO must be
@@ -118,7 +120,7 @@ jobs:
        # Add server runtime crates to the workspace
        sed -i 's/"sdk\/sts",/"sdk\/sts","sdk\/aws-smithy-http-server","sdk\/aws-smithy-http-server-python","sdk\/aws-smithy-http-server-typescript",/' Cargo.toml

        RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps
        RUSTDOCFLAGS="--cfg docsrs" cargo +${{ env.rust_nightly_version }} doc --all-features --no-deps

        popd
        ./tools/ci-scripts/generate-doc-preview-index.sh ${{ inputs.base_revision }}