Skip to content

Commit 850e969

Browse files
committed
Run benchmarks in CI
1 parent a134b39 commit 850e969

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ jobs:
186186
# This changes a variable, so is only set when a custom SDK is used
187187
run: echo "SDKROOT=$HOME/extern/sdk" >> $GITHUB_ENV
188188

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

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

330+
- name: Run benchmarks
331+
# Difficult to install Valgrind on macOS
332+
# See https://github.com/LouisBrunner/valgrind-macos
333+
if: contains(matrix.os, 'ubuntu')
334+
uses: actions-rs/cargo@v1
335+
with:
336+
command: bench
337+
args: --package objc2 --bench autorelease ${{ env.TESTARGS }}
338+
330339
- name: Test with unstable features
331340
if: ${{ !matrix.dinghy && matrix.rust.toolchain == 'nightly' }}
332341
uses: actions-rs/cargo@v1

0 commit comments

Comments
 (0)