-
Notifications
You must be signed in to change notification settings - Fork 19
57 lines (55 loc) · 1.69 KB
/
benchmark.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
name: Benchmarks
on:
push:
branches:
- '*'
paths-ignore:
- 'README.md'
- 'examples/**'
- 'scripts/*'
- 'web/**'
- 'tests/**'
- 'unit/**'
- '.github/workflows/**'
- '!.github/workflows/benchmark.yml'
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: "./.github/workflows/setup"
- name: Install Prerequisites
run: |
sudo apt-get update -q
sudo apt-get install ninja-build python3-setuptools uuid uuid-dev
- name: Install Conan
run: |
sudo pip3 install wheel
sudo pip3 install conan==1.*
- name: Retrieve ANTLR4 Java
run: |
wget https://www.antlr.org/download/antlr-${{ env.antlrVersion }}-complete.jar -O antlr4.jar
- name: Build
run: |
set -ex
mkdir build && cd build
cmake ../ -G "Ninja" -DBUILD_BENCHMARKS:bool=true -DANTLR_EXECUTABLE:path=`pwd`/../antlr4.jar
ninja
- name: Run benchmarks
run: |
set -ex
export LD_LIBRARY_PATH=`pwd`/build/onetbb/lib
./build/benchmarks --benchmark_format=json | tee benchmark_result.json
- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
if: ${{ github.ref_name == 'develop' }}
with:
tool: 'googlecpp'
output-file-path: benchmark_result.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
comment-on-alert: true
alert-threshold: '200%'
alert-comment-cc-users: '@disorderedmaterials/dissolve-devs'