Skip to content

Merge pull request #4 from tfiala/update-deps-2025-05-04-part-2 #30

Merge pull request #4 from tfiala/update-deps-2025-05-04-part-2

Merge pull request #4 from tfiala/update-deps-2025-05-04-part-2 #30

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Cache cargo registry
id: cache-cargo-registry
uses: actions/cache@v2
with:
path: ~/.cargo
key: cargo-registry-${{ hashFiles('Cargo.lock') }}
restore-keys: cargo-registry-
- name: Build
run: cargo build --verbose
- name: Cache cargo registry
if: always()
uses: actions/cache@v2
with:
path: ~/.cargo
key: cargo-registry-${{ hashFiles('Cargo.lock') }}
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test --verbose