This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Bump library/rust from 1.77.2-bullseye to 1.79.0-bullseye in /.devcontainer in the minor group across 1 directory #2301
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: Docs | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
# Deduplicate jobs from pull requests and branch pushes within the same repo. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/[email protected] | |
- name: Install dependencies | |
uses: awalsh128/[email protected] | |
with: | |
packages: libopencv-dev clang libclang-dev | |
- name: Install nightly toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: nightly | |
default: true | |
- name: Cache Rust Build | |
uses: Swatinem/[email protected] | |
- name: Build docs | |
uses: actions-rs/[email protected] | |
with: | |
command: doc | |
args: > | |
--workspace | |
--no-deps | |
--all-features | |
--document-private-items | |
--manifest-path backend/Cargo.toml | |
env: | |
RUSTDOCFLAGS: > | |
-D warnings | |
-Z unstable-options | |
--enable-index-page | |
- name: Fix file permissions for pages | |
run: chmod -R +rX backend/target/doc | |
- name: Upload Pages artifact | |
uses: actions/[email protected] | |
with: | |
path: backend/target/doc | |
publish: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Setup Pages | |
uses: actions/[email protected] | |
- name: Publish docs to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] |