Update actions/checkout action to v4 #122
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: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup set profile minimal | |
- run: rustup show | |
- run: cargo check --all | |
bench: | |
name: Compile Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup set profile minimal | |
- run: rustup show | |
- run: cargo bench --no-run | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup set profile minimal | |
- run: rustup show | |
- run: cargo test --all | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup set profile minimal | |
- run: rustup show | |
- run: rustup component add rustfmt | |
- run: cargo fmt --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup set profile minimal | |
- run: rustup show | |
- run: rustup component add clippy | |
- run: cargo clippy --all -- --deny warnings --allow clippy::unknown-clippy-lints |