release v2.0.0 #79
Workflow file for this run
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
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
name: Continuous integration | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace | |
check_avx: | |
name: Check AVX | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2 | |
- uses: actions-rs/cargo@v1 | |
env: | |
RUSTFLAGS: "-C target-cpu=native" | |
with: | |
command: check | |
args: --features avx --workspace | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2 | |
- name: Test with default features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace | |
test_avx: | |
name: Test AVX | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2 | |
- name: Test with avx feature | |
uses: actions-rs/cargo@v1 | |
env: | |
RUSTFLAGS: "-C target-cpu=native" | |
with: | |
command: test | |
args: --workspace --features avx | |
test_windows: | |
name: Test Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace --exclude fuzzit | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- run: rustup component add rustfmt | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --workspace --all-features -- -D warnings |