Skip to content

Commit

Permalink
feat: create benchmark test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed Dec 8, 2024
1 parent 773279c commit e3aad21
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [ master ]

jobs:
benchmark:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
check-latest: true
java-version: 22
cache: 'gradle'

- name: Validate gradle wrapper
uses: gradle/actions/wrapper-validation@v4

- name: Create local properties
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
run: echo "$LOCAL_PROPERTIES" | base64 --decode > local.properties

- name: Cache konan directory
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('*.gradle.kts', 'buildSrc/*') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Run benchmarks
run: ./gradlew benchmarks:benchmark

0 comments on commit e3aad21

Please sign in to comment.