Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for java bindings #61

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
build rust then java
  • Loading branch information
leoromanovsky committed Oct 30, 2024
commit 096eec5112de693db45d1a166f1b56d0c4bc12f1
6 changes: 3 additions & 3 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
distribution: 'temurin' # Popular Java distribution
java-version: ${{ matrix.java }}
cache: 'maven' # Cache Maven dependencies
cache: 'gradle'

- name: Set up Node
uses: actions/setup-node@v4
Expand All @@ -45,8 +45,8 @@ jobs:
echo "[patch.crates-io.eppo_core]" >> "${CARGO_HOME:-$HOME/.cargo}/config.toml"
echo "path = '$PWD/eppo_core'" >> "${CARGO_HOME:-$HOME/.cargo}/config.toml"

- name: Build with Maven
run: mvn -B package
- name: Build with Gradle
run: ./gradlew build
working-directory: java-sdk

- name: Run tests
Expand Down
13 changes: 13 additions & 0 deletions java-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
base
alias(libs.plugins.kotlin.jvm)
}

tasks.register<Exec>("buildRust") {
workingDir("${projectDir}/ext/eppo_client")
commandLine("cargo", "build", "--release")
}

tasks.named("build") {
dependsOn("buildRust")
}
Loading