Spaces:
Running
Running
ci : disable CUDA and Android builds
Browse files
.github/workflows/build.yml
CHANGED
|
@@ -430,71 +430,72 @@ jobs:
|
|
| 430 |
name: whisper-blas-bin-${{ matrix.arch }}
|
| 431 |
path: build/bin/${{ matrix.build }}
|
| 432 |
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
-
|
| 473 |
-
-
|
| 474 |
-
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
-
|
| 485 |
-
-
|
| 486 |
-
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
|
|
|
| 498 |
|
| 499 |
emscripten:
|
| 500 |
runs-on: ubuntu-latest
|
|
@@ -563,34 +564,35 @@ jobs:
|
|
| 563 |
- name: Build swiftui example
|
| 564 |
run: xcodebuild -project examples/whisper.swiftui/whisper.swiftui.xcodeproj -scheme WhisperCppDemo -configuration ${{ matrix.build }} -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' build
|
| 565 |
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
|
|
|
| 594 |
|
| 595 |
# TODO: disable because of following fail: https://github.com/ggerganov/whisper.cpp/actions/runs/11019444420/job/30627193602
|
| 596 |
# android_java:
|
|
|
|
| 430 |
name: whisper-blas-bin-${{ matrix.arch }}
|
| 431 |
path: build/bin/${{ matrix.build }}
|
| 432 |
|
| 433 |
+
# TODO: fix and re-enable
|
| 434 |
+
# windows-cublas:
|
| 435 |
+
# runs-on: windows-2019
|
| 436 |
+
#
|
| 437 |
+
# strategy:
|
| 438 |
+
# matrix:
|
| 439 |
+
# build: [Release]
|
| 440 |
+
# arch: [x64]
|
| 441 |
+
# cublas: [ON]
|
| 442 |
+
# sdl2: [ON]
|
| 443 |
+
# cuda-toolkit: [12.2.0, 11.8.0]
|
| 444 |
+
# include:
|
| 445 |
+
# - arch: x64
|
| 446 |
+
# s2arc: x64
|
| 447 |
+
# - sdl2: ON
|
| 448 |
+
# s2ver: 2.28.5
|
| 449 |
+
#
|
| 450 |
+
# steps:
|
| 451 |
+
# - name: Clone
|
| 452 |
+
# uses: actions/checkout@v4
|
| 453 |
+
#
|
| 454 |
+
# - name: Add msbuild to PATH
|
| 455 |
+
# uses: microsoft/setup-msbuild@v2
|
| 456 |
+
#
|
| 457 |
+
# - name: Install CUDA Toolkit
|
| 458 |
+
# id: cuda-toolkit
|
| 459 |
+
# uses: Jimver/[email protected]
|
| 460 |
+
# with:
|
| 461 |
+
# cuda: '${{ matrix.cuda-toolkit }}'
|
| 462 |
+
#
|
| 463 |
+
# - name: Fetch SDL2 and set SDL2_DIR
|
| 464 |
+
# if: matrix.sdl2 == 'ON'
|
| 465 |
+
# run: |
|
| 466 |
+
# C:/msys64/usr/bin/wget.exe -qO sdl2.zip https://github.com/libsdl-org/SDL/releases/download/release-${{ matrix.s2ver }}/SDL2-devel-${{ matrix.s2ver }}-VC.zip
|
| 467 |
+
# 7z x sdl2.zip
|
| 468 |
+
# echo "SDL2_DIR=$env:GITHUB_WORKSPACE/SDL2-${{ matrix.s2ver }}/cmake" >> $env:GITHUB_ENV
|
| 469 |
+
#
|
| 470 |
+
# - name: Configure
|
| 471 |
+
# run: >
|
| 472 |
+
# cmake -S . -B ./build -A ${{ matrix.arch }}
|
| 473 |
+
# -DCMAKE_BUILD_TYPE=${{ matrix.build }}
|
| 474 |
+
# -DGGML_CUDA=${{ matrix.cublas }}
|
| 475 |
+
# -DWHISPER_SDL2=${{ matrix.sdl2 }}
|
| 476 |
+
#
|
| 477 |
+
# - name: Build ${{ matrix.cuda-toolkit }}
|
| 478 |
+
# run: |
|
| 479 |
+
# cd ./build
|
| 480 |
+
# cmake --build . --config ${{ matrix.build }}
|
| 481 |
+
#
|
| 482 |
+
# - name: Copy CUDA DLLs
|
| 483 |
+
# run: >
|
| 484 |
+
# Copy-Item -PassThru
|
| 485 |
+
# -Path "${{ steps.cuda-toolkit.outputs.CUDA_PATH }}/bin/*.dll"
|
| 486 |
+
# -Include cudart64_*,cublas64_*,cublasLt64_*
|
| 487 |
+
# -Destination build/bin/${{ matrix.build }}
|
| 488 |
+
#
|
| 489 |
+
# - name: Copy SDL2.dll
|
| 490 |
+
# if: matrix.sdl2 == 'ON'
|
| 491 |
+
# run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
|
| 492 |
+
#
|
| 493 |
+
# - name: Upload binaries
|
| 494 |
+
# if: matrix.sdl2 == 'ON'
|
| 495 |
+
# uses: actions/upload-artifact@v4
|
| 496 |
+
# with:
|
| 497 |
+
# name: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}
|
| 498 |
+
# path: build/bin/${{ matrix.build }}
|
| 499 |
|
| 500 |
emscripten:
|
| 501 |
runs-on: ubuntu-latest
|
|
|
|
| 564 |
- name: Build swiftui example
|
| 565 |
run: xcodebuild -project examples/whisper.swiftui/whisper.swiftui.xcodeproj -scheme WhisperCppDemo -configuration ${{ matrix.build }} -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' build
|
| 566 |
|
| 567 |
+
# TODO: update android build and re-enable when it works
|
| 568 |
+
# android:
|
| 569 |
+
# runs-on: ubuntu-latest
|
| 570 |
+
#
|
| 571 |
+
# steps:
|
| 572 |
+
# - name: Clone
|
| 573 |
+
# uses: actions/checkout@v4
|
| 574 |
+
# with:
|
| 575 |
+
# path: whisper
|
| 576 |
+
#
|
| 577 |
+
# - name: Install Java
|
| 578 |
+
# uses: actions/setup-java@v4
|
| 579 |
+
# with:
|
| 580 |
+
# distribution: zulu
|
| 581 |
+
# java-version: 21
|
| 582 |
+
#
|
| 583 |
+
# - name: Setup Android SDK
|
| 584 |
+
# uses: android-actions/setup-android@v3
|
| 585 |
+
#
|
| 586 |
+
# - name: Build
|
| 587 |
+
# run: |
|
| 588 |
+
# cd whisper/examples/whisper.android
|
| 589 |
+
# ./gradlew assembleRelease --no-daemon
|
| 590 |
+
#
|
| 591 |
+
# - name: Build with external ggml
|
| 592 |
+
# run: |
|
| 593 |
+
# export PATH_TO_GGML=$PWD/ggml
|
| 594 |
+
# cd whisper/examples/whisper.android
|
| 595 |
+
# ./gradlew assembleRelease --no-daemon
|
| 596 |
|
| 597 |
# TODO: disable because of following fail: https://github.com/ggerganov/whisper.cpp/actions/runs/11019444420/job/30627193602
|
| 598 |
# android_java:
|
examples/whisper.android/lib/src/main/jni/whisper/CMakeLists.txt
CHANGED
|
@@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 17)
|
|
| 6 |
set(WHISPER_LIB_DIR ${CMAKE_SOURCE_DIR}/../../../../../../..)
|
| 7 |
|
| 8 |
# Path to external GGML, otherwise uses the copy in whisper.cpp.
|
| 9 |
-
option(GGML_HOME
|
| 10 |
|
| 11 |
set(
|
| 12 |
SOURCE_FILES
|
|
@@ -14,6 +14,8 @@ set(
|
|
| 14 |
${CMAKE_SOURCE_DIR}/jni.c
|
| 15 |
)
|
| 16 |
|
|
|
|
|
|
|
| 17 |
if (NOT GGML_HOME)
|
| 18 |
set(
|
| 19 |
SOURCE_FILES
|
|
|
|
| 6 |
set(WHISPER_LIB_DIR ${CMAKE_SOURCE_DIR}/../../../../../../..)
|
| 7 |
|
| 8 |
# Path to external GGML, otherwise uses the copy in whisper.cpp.
|
| 9 |
+
option(GGML_HOME "whisper: Path to external GGML source" OFF)
|
| 10 |
|
| 11 |
set(
|
| 12 |
SOURCE_FILES
|
|
|
|
| 14 |
${CMAKE_SOURCE_DIR}/jni.c
|
| 15 |
)
|
| 16 |
|
| 17 |
+
# TODO: this needs to be updated to work with the new ggml CMakeLists
|
| 18 |
+
|
| 19 |
if (NOT GGML_HOME)
|
| 20 |
set(
|
| 21 |
SOURCE_FILES
|