Skip to content

Commit

Permalink
fix missing debian binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
GiviMAD committed May 19, 2024
1 parent 70fb24d commit 5bd63dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
- name: Build native library
run: |
docker build --build-arg="RUN_TESTS=true" -f dockerfile . -t whisperjni_binary:x86_64 --load
docker run --platform=amd64 -v $(pwd)/dist:/out whisperjni_binary:x86_64 bash -c "cp src/main/resources/debian-amd64/*.so /out/"
docker run --platform=amd64 -v $(pwd)/dist:/out whisperjni_binary:x86_64 bash -c "cp src/main/resources/debian-amd64/* /out/"
- name: Artifact debian x86_64
uses: actions/upload-artifact@v3
with:
name: debian-binary-amd64
path: dist/*.so
path: dist/*

build-lib-debian-arm64:
needs: [download-model]
Expand All @@ -62,12 +62,12 @@ jobs:
- name: Build native library
run: |
docker build -f dockerfile . -t whisperjni_binary:arm64 --platform arm64 --load
DOCKER_BUILDKIT=1 docker run --platform=arm64 -v $(pwd)/dist:/out whisperjni_binary:arm64 bash -c "cp src/main/resources/debian-arm64/*.so /out/"
DOCKER_BUILDKIT=1 docker run --platform=arm64 -v $(pwd)/dist:/out whisperjni_binary:arm64 bash -c "cp src/main/resources/debian-arm64/* /out/"
- name: Artifact debian arm64
uses: actions/upload-artifact@v3
with:
name: debian-binary-arm64
path: dist/*.so
path: dist/*

build-lib-debian-arm:
needs: [download-model]
Expand All @@ -88,12 +88,12 @@ jobs:
- name: Build native library
run: |
docker build -f dockerfile . -t whisperjni_binary:armv7l --platform arm --load
DOCKER_BUILDKIT=1 docker run --platform=arm -v $(pwd)/dist:/out whisperjni_binary:armv7l bash -c "cp src/main/resources/debian-armv7l/*.so /out/"
DOCKER_BUILDKIT=1 docker run --platform=arm -v $(pwd)/dist:/out whisperjni_binary:armv7l bash -c "cp src/main/resources/debian-armv7l/* /out/"
- name: Artifact debian armv7l
uses: actions/upload-artifact@v3
with:
name: debian-binary-armv7l
path: dist/*.so
path: dist/*

build-lib-windows:
needs: [download-model]
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: check tree
run: ls -R
Expand All @@ -182,6 +182,9 @@ jobs:
mv ./debian-binary-amd64/*.so ./src/main/resources/debian-amd64/
mv ./debian-binary-arm64/*.so ./src/main/resources/debian-arm64/
mv ./debian-binary-armv7l/*.so ./src/main/resources/debian-armv7l/
mv ./debian-binary-amd64/*.so.* ./src/main/resources/debian-amd64/
mv ./debian-binary-arm64/*.so.* ./src/main/resources/debian-arm64/
mv ./debian-binary-armv7l/*.so.* ./src/main/resources/debian-armv7l/
mv ./windows-binary-x86_64/*.dll ./src/main/resources/win-amd64/
mv ./macos-binary-amd64/*.dylib ./src/main/resources/macos-amd64/
mv ./macos-binary-arm64/*.dylib ./src/main/resources/macos-arm64/
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<artifactId>whisper-jni</artifactId>
<name>whisper-jni</name>
<url>https://github.com/GiviMAD/whisper-jni</url>
<version>1.6.0</version>
<version>1.6.0-0</version>
<description>A JNI wrapper for [whisper.cpp](https://github.com/ggerganov/whisper.cpp), allows to transcribe speech to text in Java</description>

<licenses>
Expand Down

0 comments on commit 5bd63dd

Please sign in to comment.