mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-24 11:18:58 +02:00
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: https://github.com/ggerganov/whisper.cpp/pull/2949 Refs: https://github.com/ggerganov/whisper.cpp/issues/2781
This commit is contained in:
parent
f28bf5d186
commit
0208803b66
85
.github/workflows/build.yml
vendored
85
.github/workflows/build.yml
vendored
@ -995,49 +995,48 @@ jobs:
|
|||||||
# chmod +x ./gradlew
|
# chmod +x ./gradlew
|
||||||
# ./gradlew assembleRelease
|
# ./gradlew assembleRelease
|
||||||
|
|
||||||
# TODO: disabled because of following fail: https://github.com/ggerganov/whisper.cpp/actions/runs/9686220096/job/26735899598
|
bindings-java:
|
||||||
# java:
|
needs: ['windows']
|
||||||
# needs: [ 'windows' ]
|
runs-on: windows-latest
|
||||||
# runs-on: windows-latest
|
steps:
|
||||||
# steps:
|
- uses: actions/checkout@v4
|
||||||
# - uses: actions/checkout@v4
|
|
||||||
#
|
- name: Install Java
|
||||||
# - name: Install Java
|
uses: actions/setup-java@v4
|
||||||
# uses: actions/setup-java@v4
|
with:
|
||||||
# with:
|
distribution: zulu
|
||||||
# distribution: zulu
|
java-version: 20
|
||||||
# java-version: 20
|
|
||||||
#
|
- name: Download Windows lib
|
||||||
# - name: Download Windows lib
|
uses: actions/download-artifact@v4
|
||||||
# uses: actions/download-artifact@v4
|
with:
|
||||||
# with:
|
name: win32-x86-64_whisper.dll
|
||||||
# name: win32-x86-64_whisper.dll
|
path: bindings/java/build/generated/resources/main/win32-x86-64
|
||||||
# path: bindings/java/build/generated/resources/main/win32-x86-64
|
|
||||||
#
|
- name: Build
|
||||||
# - name: Build
|
run: |
|
||||||
# run: |
|
models\download-ggml-model.cmd tiny.en
|
||||||
# models\download-ggml-model.cmd tiny.en
|
cd bindings/java
|
||||||
# cd bindings/java
|
chmod +x ./gradlew
|
||||||
# chmod +x ./gradlew
|
./gradlew build
|
||||||
# ./gradlew build
|
|
||||||
#
|
- name: Upload jar
|
||||||
# - name: Upload jar
|
uses: actions/upload-artifact@v4
|
||||||
# uses: actions/upload-artifact@v4
|
with:
|
||||||
# with:
|
name: whispercpp.jar
|
||||||
# name: whispercpp.jar
|
path: bindings/java/build/libs/whispercpp-*.jar
|
||||||
# path: bindings/java/build/libs/whispercpp-*.jar
|
|
||||||
#
|
- name: Publish package
|
||||||
# - name: Publish package
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
# if: ${{ github.ref == 'refs/heads/master' }}
|
uses: gradle/gradle-build-action@v2.4.2
|
||||||
# uses: gradle/gradle-build-action@v2.4.2
|
with:
|
||||||
# with:
|
arguments: publish
|
||||||
# arguments: publish
|
build-root-directory: bindings/java
|
||||||
# build-root-directory: bindings/java
|
env:
|
||||||
# env:
|
MAVEN_USERNAME: ${{ secrets.JIRA_USER }}
|
||||||
# MAVEN_USERNAME: ${{ secrets.JIRA_USER }}
|
MAVEN_PASSWORD: ${{ secrets.JIRA_PASS }}
|
||||||
# MAVEN_PASSWORD: ${{ secrets.JIRA_PASS }}
|
PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
# PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
|
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
# PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
|
||||||
|
|
||||||
quantize:
|
quantize:
|
||||||
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
|
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
|
||||||
|
Loading…
Reference in New Issue
Block a user