refactor: impl iterator for upper triangular matrix #18
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: | |
- master | |
pull_request: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- run: rustup toolchain install stable --profile minimal --no-self-update | |
- uses: Swatinem/rust-cache@v2 | |
- name: Code linting | |
run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
- name: Code formatting | |
run: cargo fmt --all --check | |
- name: Build | |
run: cargo build | |
- name: Run tests | |
run: cargo test --workspace --all-features --all-targets | |
- name: Check docs | |
env: | |
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests" | |
run: cargo doc --package am4 --all-features --no-deps |