Skip to content

Commit e7d7d36

Browse files
Copilothossain-khan
andcommitted
Add benchmark workflow to save artifacts on main branch pushes
Co-authored-by: hossain-khan <[email protected]>
1 parent a8c5d0b commit e7d7d36

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Benchmark
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
benchmark:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up JDK
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '23'
18+
distribution: 'temurin'
19+
cache: gradle
20+
21+
# https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#build-with-a-specific-gradle-version
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v4
24+
with:
25+
gradle-version: '8.14.2' # Quotes required to prevent YAML converting to number
26+
27+
- name: Run benchmark
28+
run: gradle :benchmark:run
29+
30+
- name: Upload benchmark artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: benchmark-results
34+
path: |
35+
benchmark/benchmark_results_*.csv
36+
benchmark/benchmark_summary_*.txt
37+
retention-days: 30

0 commit comments

Comments
 (0)