-
Notifications
You must be signed in to change notification settings - Fork 87
57 lines (53 loc) · 1.79 KB
/
rust-bench.yml
File metadata and controls
57 lines (53 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Rust-Benchmarks
permissions:
contents: read
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened, labeled]
env:
CARGO_TERM_COLOR: always
jobs:
bench:
# Only run when PR has 'cargobench' label
if: contains(github.event.pull_request.labels.*.name, 'cargobench')
strategy:
fail-fast: false
matrix:
folder:
- otap-dataflow
- experimental/query_abstraction
- experimental/query_engine
- experimental/syslog-cef-receivers
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
with:
toolchain: stable
- name: cargo bench ${{ matrix.folder }}
run: cargo bench
working-directory: ./rust/${{ matrix.folder }}
bench-contrib:
# Run feature-gated contrib benchmarks under the same label
if: contains(github.event.pull_request.labels.*.name, 'cargobench')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
with:
toolchain: stable
- name: cargo bench contrib-nodes (all features)
run: cargo bench -p otap-df-contrib-nodes --all-features
working-directory: ./rust/otap-dataflow