Skip to content

Support stable Rust with features #70

Support stable Rust with features

Support stable Rust with features #70

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: ['nightly', 'stable']
feat_multi_thread: ['', 'multi-thread']
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- name: Format
run: cargo fmt --check
- name: Lint
run: cargo clippy --no-deps -- -Dwarnings
- name: Test
run: cargo test --no-default-features -F prg,${{ matrix.feat_multi_thread }},$(if [ "${{ matrix.toolchain }}" = "stable" ]; then echo "stable"; fi)