Skip to content

Commit

Permalink
Add test github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivordir committed Oct 24, 2023
1 parent 74d591c commit c833719
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test

on:
push:
branches: [main]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust-flags: ["", "-C target_feature=+avx2"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- run: cargo hack --feature-powerset test --lib
env:
RUSTFLAGS: ${{ matrix.rust-flags }}

doc:
name: Doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --doc

0 comments on commit c833719

Please sign in to comment.