Fix compilation issues with newer Rust versions and increase version … #330
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: CI | |
on: | |
pull_request: | |
types: [ opened, synchronize ] | |
push: | |
jobs: | |
do-various-checks: | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Restore Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Format Rust code | |
env: | |
TERM: xterm-256color # Make output colored. Only works on step, not on job. | |
run: cargo fmt --all --check -- --color always | |
- name: Clippy | |
env: | |
TERM: xterm-256color | |
run: cargo clippy --workspace --all-targets --all-features --color always -- -D warnings | |
- name: Unit tests | |
run: cargo test --workspace --exclude benchmarks --color always |