Skip to content

Commit 0208803

Browse files
committed
ci : re-enable bindings-java (java) job
This commit re-enables the job previously name `java` which was disabled in the build.yml file. The motivation for this is that we recently fixed a few issue in the java bindings and it should be possible to build them on windows. Refs: #2949 Refs: #2781
1 parent f28bf5d commit 0208803

File tree

1 file changed

+42
-43
lines changed

1 file changed

+42
-43
lines changed

.github/workflows/build.yml

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -995,49 +995,48 @@ jobs:
995995
# chmod +x ./gradlew
996996
# ./gradlew assembleRelease
997997

998-
# TODO: disabled because of following fail: https://github.com/ggerganov/whisper.cpp/actions/runs/9686220096/job/26735899598
999-
# java:
1000-
# needs: [ 'windows' ]
1001-
# runs-on: windows-latest
1002-
# steps:
1003-
# - uses: actions/checkout@v4
1004-
#
1005-
# - name: Install Java
1006-
# uses: actions/setup-java@v4
1007-
# with:
1008-
# distribution: zulu
1009-
# java-version: 20
1010-
#
1011-
# - name: Download Windows lib
1012-
# uses: actions/download-artifact@v4
1013-
# with:
1014-
# name: win32-x86-64_whisper.dll
1015-
# path: bindings/java/build/generated/resources/main/win32-x86-64
1016-
#
1017-
# - name: Build
1018-
# run: |
1019-
# models\download-ggml-model.cmd tiny.en
1020-
# cd bindings/java
1021-
# chmod +x ./gradlew
1022-
# ./gradlew build
1023-
#
1024-
# - name: Upload jar
1025-
# uses: actions/upload-artifact@v4
1026-
# with:
1027-
# name: whispercpp.jar
1028-
# path: bindings/java/build/libs/whispercpp-*.jar
1029-
#
1030-
# - name: Publish package
1031-
# if: ${{ github.ref == 'refs/heads/master' }}
1032-
# uses: gradle/[email protected]
1033-
# with:
1034-
# arguments: publish
1035-
# build-root-directory: bindings/java
1036-
# env:
1037-
# MAVEN_USERNAME: ${{ secrets.JIRA_USER }}
1038-
# MAVEN_PASSWORD: ${{ secrets.JIRA_PASS }}
1039-
# PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
1040-
# PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
998+
bindings-java:
999+
needs: ['windows']
1000+
runs-on: windows-latest
1001+
steps:
1002+
- uses: actions/checkout@v4
1003+
1004+
- name: Install Java
1005+
uses: actions/setup-java@v4
1006+
with:
1007+
distribution: zulu
1008+
java-version: 20
1009+
1010+
- name: Download Windows lib
1011+
uses: actions/download-artifact@v4
1012+
with:
1013+
name: win32-x86-64_whisper.dll
1014+
path: bindings/java/build/generated/resources/main/win32-x86-64
1015+
1016+
- name: Build
1017+
run: |
1018+
models\download-ggml-model.cmd tiny.en
1019+
cd bindings/java
1020+
chmod +x ./gradlew
1021+
./gradlew build
1022+
1023+
- name: Upload jar
1024+
uses: actions/upload-artifact@v4
1025+
with:
1026+
name: whispercpp.jar
1027+
path: bindings/java/build/libs/whispercpp-*.jar
1028+
1029+
- name: Publish package
1030+
if: ${{ github.ref == 'refs/heads/master' }}
1031+
uses: gradle/[email protected]
1032+
with:
1033+
arguments: publish
1034+
build-root-directory: bindings/java
1035+
env:
1036+
MAVEN_USERNAME: ${{ secrets.JIRA_USER }}
1037+
MAVEN_PASSWORD: ${{ secrets.JIRA_PASS }}
1038+
PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
1039+
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
10411040

10421041
quantize:
10431042
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||

0 commit comments

Comments
 (0)