Skip to content

Commit

Permalink
Add benchmarking to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Jun 22, 2021
1 parent d06ffb5 commit 7a1dc78
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/umbral-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,28 @@ jobs:
- run: cargo check --target ${{ matrix.target }} --all-features
- run: cargo test --release --target ${{ matrix.target }}

bench:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# 64-bit Linux
- target: x86_64-unknown-linux-gnu
rust: 1.51.0 # MSRV
- target: x86_64-unknown-linux-gnu
rust: stable

steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: ${{ matrix.deps }}
- run: cargo bench --target ${{ matrix.target }} --all-features

codecov:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7a1dc78

Please sign in to comment.