-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (62 loc) · 1.92 KB
/
arena.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Arena
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
arena:
runs-on: ubuntu-22.04-4-cores
environment: LOCAL
env:
GIT_LFS_SKIP_SMUDGE: 1
steps:
- name: Check out code
uses: actions/checkout@v4
with:
filter: 'blob:none'
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: 'requirements.txt'
- name: Install python libraries
run: pip install -r requirements.txt
- name: Install Boost Library
run: sudo apt install libboost-all-dev
- name: Install GCC-11
run: sudo bash ./scripts/install_gcc_11.sh
- name: Cache Benchmark library
uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Run the arena
run: |
python arena.py
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: Store benchmark result in branch
uses: benchmark-action/github-action-benchmark@v1
with:
name: Arena Benchmark
tool: 'customBiggerIsBetter'
output-file-path: arena_results.json
github-token: ${{ secrets.GITHUB_TOKEN }}
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: false
auto-push: true
summary-always: true
max-items-in-chart: 10
benchmark-data-dir-path: "benchmarking/arena"
- name: Store benchmark result in cache
uses: benchmark-action/github-action-benchmark@v1
with:
name: Arena Benchmark
tool: 'customBiggerIsBetter'
output-file-path: arena_results.json
external-data-json-path: ./cache/benchmark-data.json