Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Rust
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

env:
CARGO_TERM_COLOR: always
Expand All @@ -17,31 +17,32 @@ jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- name: Clippy
run: cargo clippy -- -D warnings
- name: Formatting
run: cargo fmt -- --check

- name: Tests
run: cargo test --verbose

- name: Formatting
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy -- -D warnings

- name: Documentation
run: cargo doc --no-deps