Skip to content

Bump actions/checkout from 3 to 4 #33

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #33

Workflow file for this run

name: Rust CI
on:
push:
branches:
- main
paths:
- "native/**"
pull_request:
paths:
- "native/**"
- ".github/workflows/rust-ci.yml"
workflow_dispatch:
jobs:
lint-rust:
name: Lint Rust
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
manifest:
- native/mail_parser_nif/Cargo.toml
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: actions/[email protected]
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
native/mail_parser_nif/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.job.target }}
components: rustfmt, clippy
- name: Run rustfmt in check mode
run: cargo fmt --manifest-path=${{ matrix.manifest }} --all -- --check
- name: Run clippy
run: cargo clippy --manifest-path=${{ matrix.manifest }} -- -Dwarnings