Skip to content

Fix warning from newer rust #20

Fix warning from newer rust

Fix warning from newer rust #20

Workflow file for this run

name: Rust Test
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: protobuf-compiler
version: v0
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: nightly
components: clippy
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v0-rust"
- name: Build | Lint
run: cargo clippy --all-targets --no-deps --locked
doc:
name: Doc
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: protobuf-compiler
version: v0
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: nightly
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v0-rust"
- name: Cargo Doc
run: cargo doc --workspace --no-deps --locked
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: nightly
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: protobuf-compiler
version: v0
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v0-rust"
- name: Test
run: cargo test --locked