run benchmarks on github workflow on ubuntu #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: [push, pull_request] | |
jobs: | |
main: | |
name: ${{ matrix.os }} - ${{ matrix.rust }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
rust: [stable, beta, nightly] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: clippy, rustfmt | |
- run: cargo build | |
- run: cargo test | |
- run: cargo fmt -- --check | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
- run: cargo clippy | |
continue-on-error: true | |
- run: cargo bench | |
if: ${{ matrix.os == 'ubuntu-latest' }} |