WIP: Optimizing parallel calculation #53
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: Rust lint & test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Set Toolchain | |
# https://github.com/dtolnay/rust-toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Run check | |
run: cargo check | |
- name: Run rustfmt | |
run: cargo fmt --all -- --check | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Set Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run test | |
run: cargo test |