Skip to content

refactor: lib-bin split to allow benchmarking #36

refactor: lib-bin split to allow benchmarking

refactor: lib-bin split to allow benchmarking #36

Workflow file for this run

name: CI
on:
merge_group:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
toolchain: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Use Rust Cache
if: ${{ runner.os == 'Linux' }}
uses: Swatinem/[email protected]
- name: Run cargo check --all-targets w/ -D warnings
run: cargo check --all-targets
- name: Run cargo test w/ -D warnings
if: ${{ runner.os == 'Linux' }}
run: cargo test -- --test-threads=1
- name: Run cargo doc
if: ${{ runner.os == 'Linux' }}
run: cargo doc --no-deps --document-private-items
- name: Run build --release --all-targets
run: cargo build --release --all-targets
rustfmt:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get nightly Rust toolchain with rustfmt
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: Run cargo fmt --all -- --check
run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get nightly Rust toolchain with clippy
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy
- name: Run cargo clippy --package rusty-FUME --all-targets
run: cargo clippy --package rusty-fume --all-targets