Skip to content

Improved pratt ergonomics, added Mini ML example #979

Improved pratt ergonomics, added Mini ML example

Improved pratt ergonomics, added Mini ML example #979

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
permissions: read-all
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt, clippy
- name: Run cargo check (all features)
run: cargo check --benches --examples --tests --verbose --all-features
- name: Run cargo check (no features)
run: cargo check --benches --examples --tests --verbose --no-default-features
- name: Run cargo clippy
run: cargo clippy --benches --examples --tests --verbose --all-features -- -D warnings
- name: Run cargo fmt
run: cargo fmt --verbose --check
- name: Run cargo doc
run: cargo doc --all-features --verbose
env:
RUSTDOCFLAGS: --cfg docsrs
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt, clippy
- name: Run cargo test
run: cargo test --verbose --all-features
env:
RUSTDOCFLAGS: --cfg docsrs
msrv:
name: MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install MSRV
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.65"
components: rustfmt, clippy
- name: Check MSRV compatibility
run: cargo check --verbose --features _test_stable
semver:
name: SemVer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check semver compatibility
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: stable