This repository was archived by the owner on Nov 26, 2025. It is now read-only.
[doc] Add doc for Platform Memory Expansion Configuration (#58) #261
This file contains hidden or 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: Build & Deploy docs | |
| on: [push, pull_request] | |
| env: | |
| rust-toolchain: nightly-2025-05-20 | |
| jobs: | |
| doc: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| permissions: | |
| contents: write | |
| env: | |
| default-branch: ${{ format('refs/heads/{0}', github.event.repository.default_branch) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ env.rust-toolchain }} | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: cargo-bin-cache | |
| cache-targets: false | |
| - uses: arceos-org/setup-musl@v1 | |
| with: | |
| arch: x86_64 | |
| - name: Build docs | |
| continue-on-error: ${{ github.ref != env.default-branch && github.event_name != 'pull_request' }} | |
| run: make doc_check_missing | |
| - name: Deploy to Github Pages | |
| if: ${{ github.ref == env.default-branch }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| single-commit: true | |
| branch: gh-pages | |
| folder: target/doc |