Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Benchmark

on:
push:
branches: [ main ]

jobs:
benchmark:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
cache: gradle

# https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#build-with-a-specific-gradle-version
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14.2' # Quotes required to prevent YAML converting to number

- name: Run benchmark
run: gradle :benchmark:run
Copy link

Copilot AI Jun 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description indicates that the benchmark should be run using './gradlew :benchmark:run'. Using 'gradle :benchmark:run' might bypass the project's local Gradle wrapper, leading to version discrepancies or configuration issues. Consider updating the command if the local wrapper is intended for use.

Suggested change
run: gradle :benchmark:run
run: ./gradlew :benchmark:run

Copilot uses AI. Check for mistakes.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope! it's for a reason! gradlew on ci doesn't work for some reason.


- name: Upload benchmark artifacts
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: |
benchmark/benchmark_results_*.csv
benchmark/benchmark_summary_*.txt
retention-days: 30