Skip to content

Commit

Permalink
Adding benchmarks workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Nov 21, 2024
1 parent bd74fce commit a3397d3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Benchmarks
on: [workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os: ubuntu-latest
jdk: 21
experimental: [false]
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: ${{ matrix.jdk }}
cache: maven
- name: Build
run: BENCHMARKS_ENABLED=true BENCHMARKS_CONNECTION_STRING="${{ secrets.BENCHMARKS_CONNECTION_STRING }}" BENCHMARKS_USER="${{ secrets.BENCHMARKS_USER }}" BENCHMARKS_PASSWORD="${{ secrets.BENCHMARKS_PASSWORD }}" mvn test

0 comments on commit a3397d3

Please sign in to comment.