40 lines
880 B
YAML
40 lines
880 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: rustup toolchain install stable --profile=minimal --component clippy --component rustfmt
|
|
- run: cargo clippy -- -D warnings
|
|
- run: cargo fmt --all -- --check
|
|
|
|
bench:
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: rustup toolchain install nightly --profile=minimal
|
|
- run: cargo +nightly bench
|
|
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: rustup toolchain install stable --profile=minimal
|
|
- run: cargo test
|