name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-all-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check
run: cargo check --verbose --all-features
- name: Build
run: cargo build --verbose --all-features
- name: Run tests
run: cargo test --verbose --all-features
build-no-default-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check
run: cargo check --verbose --no-default-features
- name: Build
run: cargo build --verbose --no-default-features
- name: Run tests
run: cargo test --verbose --no-default-features
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run doctests
run: cargo test --doc
- name: Build docs
run: cargo doc