-
Notifications
You must be signed in to change notification settings - Fork 16
58 lines (50 loc) · 1.71 KB
/
ess-bench.yml
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
58
name: ESS Benchmark
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'intent_brokering/common/**'
- 'intent_brokering/ess/**'
- '.github/workflows/ess-bench.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: write
deployments: write
env:
# Push the results to gh-pages only on merge to main.
AUTO_PUSH: ${{ github.event_name == 'push' }}
# Comment the performance numbers of the load tests only on PRs and if the PR
# comes from within the Eclipse organization.
COMMENT_ALWAYS: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'eclipse-chariott/chariott' }}
jobs:
benchmark:
name: Execute load tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install stable toolchain
run: rustup show
- name: Install protobuf-compiler
run: sudo apt-get install -y protobuf-compiler
- name: Run benchmark
run: cargo bench --manifest-path intent_brokering/ess/Cargo.toml --bench load_bench -- --output-format bencher | tee output.txt
- name: Store benchmark result
env:
GIT_LFS_SKIP_SMUDGE: 1
uses: benchmark-action/github-action-benchmark@v1
if: ${{ github.event_name != 'workflow_dispatch' }}
with:
name: ESS Benchmark
tool: 'cargo'
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: ${{ env.AUTO_PUSH }}
comment-always: ${{ env.COMMENT_ALWAYS }}
benchmark-data-dir-path: "ess/bench"