Fix wrong operator(should use / instead of *) on scaling factor, tested on Windows #44
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: Lint | |
on: | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- "**" | |
pull_request: null | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
strategy: | |
fail-fast: false | |
matrix: | |
host: | |
- macos-latest | |
- windows-latest | |
- ubuntu-latest | |
name: Lint on ${{ matrix.host }} | |
runs-on: ${{ matrix.host }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Cargo fmt | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: cargo clippy | |
- name: Test | |
run: cargo test |