Fix clippy warning #352
Workflow file for this run
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: Rust AutoDoc | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
RUSTFLAGS: "-A warnings" | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
jobs: | |
autodoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust stable | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rust-src | |
target: wasm32-unknown-unknown | |
- name: Install protobuf-compiler | |
run: | | |
sudo apt-get install protobuf-compiler | |
- name: Setup sccache | |
uses: mozilla-actions/sccache-action@v0.0.4 | |
- name: Build the docs | |
run: | | |
cargo doc --all --no-deps | |
cp -f .maintain/index.html target/doc | |
- name: Deploy the docs | |
if: github.event_name != 'pull_request' | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc |