inital commit #1
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 | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runs-on: | ||
- windows-2019 | ||
- windows-2022 | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: cargo doc | ||
env: RUSTDOCFLAGS: "-D warnings" | ||
run: cargo doc --all-features --no-deps --document-private-items | ||
- name: cargo fmt | ||
run: cargo fmt -- --check | ||
- name: cargo clippy | ||
run: cargo clippy --all-targets --all-features -- -D warnings | ||
- name: Single-process test | ||
env: RUST_LOG=debug | ||
run: cargo test | ||
- name: Multi-process test | ||
env: RUST_LOG=debug | ||
run: cargo run | ||