---
name: Rust
"on":
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install OpenSSL on macOS
if: matrix.os == 'macos-latest'
run: brew install openssl@3
- name: Install all-features
run: cargo install cargo-all-features
- name: Format check
run: cargo fmt --all -- --check
- name: Build
run: cargo build-all-features --verbose --all
env:
RUSTFLAGS: -Dwarnings
- name: Run tests
run: cargo test-all-features --verbose --all
env:
RUSTFLAGS: -Dwarnings