-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (48 loc) · 1.48 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
name: Benchmark
on:
push:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
java: [15]
python: [3.8]
gradle: [6.8.2]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ matrix.gradle }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- uses: eskatos/gradle-command-action@v1
with:
gradle-version: ${{ matrix.gradle }}
build-root-directory: bench
arguments: benchSpoofax3CompilerFull plotToHtml --parallel --stacktrace
- uses: actions/upload-artifact@v2
with:
name: jmh-result-${{ runner.os }}-${{ matrix.java }}
path: bench/build/reports/jmh/result.json
- uses: actions/upload-artifact@v2
with:
name: plot-${{ runner.os }}-${{ matrix.java }}
path: bench/build/reports/jmh/result.html
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./bench/build/reports/jmh