name: Rust CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build (No features)
run: cargo build --verbose --no-default-features
- name: Run tests (No features)
run: cargo test --verbose --no-default-features
- name: Build (All features)
run: cargo build --verbose --all-features
- name: Run tests (All features)
run: cargo test --verbose --all-features
- name: Build (Examples)
run: cargo build --verbose --all-features --examples
- name: Run tests (Examples)
run: cargo test --verbose --all-features --examples