Skip to content

Commit 4d9aff9

Browse files
Matrix for benchmark tests
1 parent 96b71fb commit 4d9aff9

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -34,37 +34,11 @@ jobs:
3434
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/deploy'
3535

3636
test_benchmarks:
37+
strategy:
38+
matrix:
39+
BENCH_INCLUDE_EXCLUDE_OPTS: ["--exclude script-servo", "--include script-servo"]
3740
name: Test benchmarks
3841
runs-on: ubuntu-latest
39-
steps:
40-
- name: Checkout the source code
41-
uses: actions/checkout@v2
42-
with:
43-
fetch-depth: 1
44-
45-
- name: Install latest beta
46-
uses: actions-rs/toolchain@v1
47-
with:
48-
toolchain: beta
49-
override: true
50-
51-
- name: Configure environment
52-
run: |
53-
sudo apt-get update
54-
sudo apt-get install -y linux-tools-common linux-tools-generic linux-tools-`uname -r`
55-
echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
56-
57-
- name: Build collector
58-
run: cargo build -p collector
59-
60-
- name: Check benchmarks
61-
run: sh -x -c "ci/check-benchmarks.sh"
62-
env:
63-
BENCH_INCLUDE_EXCLUDE_OPTS: "--exclude script-servo"
64-
65-
test_script_servo:
66-
name: Test benchmark script-servo
67-
runs-on: ubuntu-latest
6842
steps:
6943
- name: Checkout the source code
7044
uses: actions/checkout@v2
@@ -92,7 +66,7 @@ jobs:
9266
- name: Check benchmarks
9367
run: sh -x -c "ci/check-benchmarks.sh"
9468
env:
95-
BENCH_INCLUDE_EXCLUDE_OPTS: "--include script-servo"
69+
BENCH_INCLUDE_EXCLUDE_OPTS: ${{ matrix.BENCH_INCLUDE_EXCLUDE_OPTS }}
9670
SHELL: "/bin/bash"
9771

9872
test_profiling:

0 commit comments

Comments
 (0)