-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (44 loc) · 1.37 KB
/
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
name: Benchmark
on:
push:
branches: [ main ]
schedule:
- cron: '57 7 * * *'
workflow_dispatch:
repository_dispatch:
types: [on-sdk-update]
jobs:
bench:
runs-on: ubuntu-latest
steps:
- name: Install build dependencies.
run: |
sudo apt-get install cmake ninja-build
- name: Check out the test suite.
uses: actions/checkout@v2
- name: Fetch the prerelase llvm-mos SDK.
run: |
curl -LO https://github.com/llvm-mos/llvm-mos-sdk/releases/download/prerelease/llvm-mos-linux.tar.xz
tar -xvf llvm-mos-linux.tar.xz
- name: Build the benchmarks.
run: |
mkdir build
cd build
cmake -DLLVM_MOS=$GITHUB_WORKSPACE/llvm-mos \
-C../cmake/caches/Os.cmake \
-C../cmake/caches/target-mos.cmake \
-G Ninja \
..
ninja SingleSource/Benchmarks/all
- name: Run the benchmark.
run: |
LLVM_MOS=$GITHUB_WORKSPACE/llvm-mos LLVM_MOS_SDK=$GITHUB_WORKSPACE/llvm-mos ./bench.sh > output.json
cat output.json
- name: Store the benchmark results.
uses: llvm-mos/github-action-benchmark@master
with:
name: Benchmark -Os
tool: 'googlecpp'
output-file-path: output.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true