This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
Merge pull request #46 from LemonyOwO/patch-1 #28
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: Check | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main", "dev" ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_VERSION: "1.75" | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust ${{ env.RUST_VERSION }} | |
run: rustup install ${{ env.RUST_VERSION }} | |
- name: Set Rust ${{ env.RUST_VERSION }} as default | |
run: rustup default ${{ env.RUST_VERSION }} | |
- name: Check | |
run: cargo check --config 'build.rustflags = ["-Dwarnings"]' --all-features | |
- name: Install Clippy | |
run: rustup component add clippy | |
- name: Run Clippy | |
run: cargo clippy --config 'build.rustflags = ["-Dwarnings"]' --all-features |