diff --git a/.github/workflows/java-cd.yml b/.github/workflows/java-cd.yml index 3c90248d11..6bd60cc3a5 100644 --- a/.github/workflows/java-cd.yml +++ b/.github/workflows/java-cd.yml @@ -233,7 +233,7 @@ jobs: export ORG_GRADLE_PROJECT_centralManualTestingAuthHeaderName="Authorization" export ORG_GRADLE_PROJECT_centralManualTestingAuthHeaderValue="Bearer $(echo "${{ secrets.CENTRAL_TOKEN_USERNAME }}:${{ secrets.CENTRAL_TOKEN_PASSWORD }}" | base64)" export GLIDE_RELEASE_VERSION=${{ env.RELEASE_VERSION }} - ./gradlew :benchmarks:run + ./gradlew :benchmarks:run --args="--minimal --clients glide" - name: Drop deployment if validation fails if: ${{ failure() }} diff --git a/java/benchmarks/build.gradle b/java/benchmarks/build.gradle index bccde552d7..a28929a937 100644 --- a/java/benchmarks/build.gradle +++ b/java/benchmarks/build.gradle @@ -32,6 +32,8 @@ run.dependsOn ':client:buildRustRelease' application { // Define the main class for the application. mainClass = 'glide.benchmarks.BenchmarkingApp' + // Runs for GITHUB_ACTIONS for testing release Maven deployment. Force benchmarks to use glide-rs from Maven Central + // deployments. if (!System.getenv("ORG_GRADLE_PROJECT_centralManualTestingAuthHeaderName")) { applicationDefaultJvmArgs = ['-Djava.library.path=../target/release'] }