Skip to content

Commit

Permalink
Run benchmarks in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Feb 22, 2022
1 parent a134b39 commit 15682cc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ jobs:
# This changes a variable, so is only set when a custom SDK is used
run: echo "SDKROOT=$HOME/extern/sdk" >> $GITHUB_ENV

- name: Install Clang
- name: Install Clang & Valgrind
if: contains(matrix.os, 'ubuntu')
run: sudo apt-get -y install clang
run: sudo apt-get -y install clang valgrind

- name: Install cross compilation tools
if: matrix.target == 'i686-unknown-linux-gnu'
Expand Down Expand Up @@ -327,6 +327,15 @@ jobs:
command: test
args: --features ${{ env.FEATURES }} ${{ env.TESTARGS }} --release

- name: Run benchmarks
# Difficult to install Valgrind on macOS
# See https://github.com/LouisBrunner/valgrind-macos
if: contains(matrix.os, 'ubuntu')
uses: actions-rs/cargo@v1
with:
command: bench
args: --bench autorelease ${{ env.TESTARGS }}

- name: Test with unstable features
if: ${{ !matrix.dinghy && matrix.rust.toolchain == 'nightly' }}
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 15682cc

Please sign in to comment.