Spaces:
Running
Running
Tamotsu Takahashi
commited on
ci: Update build.yml to suppress warnings about node.js versions (#2166)
Browse files* Update actions to suppress warnings about old node.js
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
* Update actions/upload-artifact, specify android cmdline-tools-version
* Use java 20
gradle 8.1 complains against 21
https://docs.gradle.org/current/userguide/compatibility.html
- .github/workflows/build.yml +46 -46
.github/workflows/build.yml
CHANGED
|
@@ -15,10 +15,10 @@ jobs:
|
|
| 15 |
|
| 16 |
steps:
|
| 17 |
- name: Clone
|
| 18 |
-
uses: actions/checkout@
|
| 19 |
|
| 20 |
- name: Set up QEMU
|
| 21 |
-
uses: docker/setup-qemu-action@
|
| 22 |
|
| 23 |
- name: Build ${{ matrix.arch }}
|
| 24 |
run: |
|
|
@@ -36,7 +36,7 @@ jobs:
|
|
| 36 |
|
| 37 |
steps:
|
| 38 |
- name: Clone
|
| 39 |
-
uses: actions/checkout@
|
| 40 |
|
| 41 |
- name: Dependencies
|
| 42 |
run: |
|
|
@@ -53,10 +53,10 @@ jobs:
|
|
| 53 |
|
| 54 |
steps:
|
| 55 |
- name: Clone
|
| 56 |
-
uses: actions/checkout@
|
| 57 |
|
| 58 |
- name: Build
|
| 59 |
-
uses: cross-platform-actions/action@v0.
|
| 60 |
with:
|
| 61 |
operating_system: freebsd
|
| 62 |
version: '13.2'
|
|
@@ -77,10 +77,10 @@ jobs:
|
|
| 77 |
|
| 78 |
steps:
|
| 79 |
- name: Clone
|
| 80 |
-
uses: actions/checkout@
|
| 81 |
|
| 82 |
- name: Set up QEMU
|
| 83 |
-
uses: docker/setup-qemu-action@
|
| 84 |
|
| 85 |
- name: Build ${{ matrix.arch }}
|
| 86 |
run: |
|
|
@@ -105,10 +105,10 @@ jobs:
|
|
| 105 |
|
| 106 |
steps:
|
| 107 |
- name: Clone
|
| 108 |
-
uses: actions/checkout@
|
| 109 |
|
| 110 |
- name: Set up QEMU
|
| 111 |
-
uses: docker/setup-qemu-action@
|
| 112 |
|
| 113 |
- name: Build ${{ matrix.arch }}
|
| 114 |
run: |
|
|
@@ -133,10 +133,10 @@ jobs:
|
|
| 133 |
|
| 134 |
steps:
|
| 135 |
- name: Clone
|
| 136 |
-
uses: actions/checkout@
|
| 137 |
|
| 138 |
- name: Set up QEMU
|
| 139 |
-
uses: docker/setup-qemu-action@
|
| 140 |
|
| 141 |
- name: Build ${{ matrix.arch }}
|
| 142 |
run: |
|
|
@@ -165,7 +165,7 @@ jobs:
|
|
| 165 |
|
| 166 |
steps:
|
| 167 |
- name: Clone
|
| 168 |
-
uses: actions/checkout@
|
| 169 |
|
| 170 |
- name: add oneAPI to apt
|
| 171 |
shell: bash
|
|
@@ -189,7 +189,7 @@ jobs:
|
|
| 189 |
|
| 190 |
- name: Clone
|
| 191 |
id: checkout
|
| 192 |
-
uses: actions/checkout@
|
| 193 |
|
| 194 |
- name: Build
|
| 195 |
id: cmake_build
|
|
@@ -215,7 +215,7 @@ jobs:
|
|
| 215 |
|
| 216 |
steps:
|
| 217 |
- name: Clone
|
| 218 |
-
uses: actions/checkout@
|
| 219 |
|
| 220 |
- name: add oneAPI to apt
|
| 221 |
shell: bash
|
|
@@ -239,7 +239,7 @@ jobs:
|
|
| 239 |
|
| 240 |
- name: Clone
|
| 241 |
id: checkout
|
| 242 |
-
uses: actions/checkout@
|
| 243 |
|
| 244 |
- name: Build
|
| 245 |
id: cmake_build
|
|
@@ -262,7 +262,7 @@ jobs:
|
|
| 262 |
|
| 263 |
steps:
|
| 264 |
- name: Clone
|
| 265 |
-
uses: actions/checkout@
|
| 266 |
|
| 267 |
- name: Setup ${{ matrix.sys }}
|
| 268 |
uses: msys2/setup-msys2@v2
|
|
@@ -328,10 +328,10 @@ jobs:
|
|
| 328 |
|
| 329 |
steps:
|
| 330 |
- name: Clone
|
| 331 |
-
uses: actions/checkout@
|
| 332 |
|
| 333 |
- name: Add msbuild to PATH
|
| 334 |
-
uses: microsoft/setup-msbuild@
|
| 335 |
|
| 336 |
- name: Fetch SDL2 and set SDL2_DIR
|
| 337 |
if: matrix.sdl2 == 'ON'
|
|
@@ -356,14 +356,14 @@ jobs:
|
|
| 356 |
run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
|
| 357 |
|
| 358 |
- name: Upload dll
|
| 359 |
-
uses: actions/upload-artifact@
|
| 360 |
with:
|
| 361 |
name: ${{ matrix.jnaPath }}_whisper.dll
|
| 362 |
path: build/bin/${{ matrix.build }}/whisper.dll
|
| 363 |
|
| 364 |
- name: Upload binaries
|
| 365 |
if: matrix.sdl2 == 'ON'
|
| 366 |
-
uses: actions/upload-artifact@
|
| 367 |
with:
|
| 368 |
name: whisper-bin-${{ matrix.arch }}
|
| 369 |
path: build/bin/${{ matrix.build }}
|
|
@@ -392,10 +392,10 @@ jobs:
|
|
| 392 |
|
| 393 |
steps:
|
| 394 |
- name: Clone
|
| 395 |
-
uses: actions/checkout@
|
| 396 |
|
| 397 |
- name: Add msbuild to PATH
|
| 398 |
-
uses: microsoft/setup-msbuild@
|
| 399 |
|
| 400 |
- name: Fetch OpenBLAS
|
| 401 |
if: matrix.blas == 'ON'
|
|
@@ -453,7 +453,7 @@ jobs:
|
|
| 453 |
|
| 454 |
- name: Upload binaries
|
| 455 |
if: matrix.blas == 'ON' && matrix.sdl2 == 'ON'
|
| 456 |
-
uses: actions/upload-artifact@
|
| 457 |
with:
|
| 458 |
name: whisper-blas${{ matrix.clblast == 'ON' && '-clblast' || ''}}-bin-${{ matrix.arch }}
|
| 459 |
path: build/bin/${{ matrix.build }}
|
|
@@ -476,14 +476,14 @@ jobs:
|
|
| 476 |
|
| 477 |
steps:
|
| 478 |
- name: Clone
|
| 479 |
-
uses: actions/checkout@
|
| 480 |
|
| 481 |
- name: Add msbuild to PATH
|
| 482 |
-
uses: microsoft/setup-msbuild@
|
| 483 |
|
| 484 |
- name: Install CUDA Toolkit
|
| 485 |
id: cuda-toolkit
|
| 486 |
-
uses: Jimver/[email protected].
|
| 487 |
with:
|
| 488 |
cuda: '${{ matrix.cuda-toolkit }}'
|
| 489 |
|
|
@@ -519,7 +519,7 @@ jobs:
|
|
| 519 |
|
| 520 |
- name: Upload binaries
|
| 521 |
if: matrix.sdl2 == 'ON'
|
| 522 |
-
uses: actions/upload-artifact@
|
| 523 |
with:
|
| 524 |
name: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}
|
| 525 |
path: build/bin/${{ matrix.build }}
|
|
@@ -533,10 +533,10 @@ jobs:
|
|
| 533 |
|
| 534 |
steps:
|
| 535 |
- name: Clone
|
| 536 |
-
uses: actions/checkout@
|
| 537 |
|
| 538 |
- name: Setup emsdk
|
| 539 |
-
uses: mymindstorm/setup-emsdk@
|
| 540 |
|
| 541 |
- name: Verify
|
| 542 |
run: emcc -v
|
|
@@ -555,7 +555,7 @@ jobs:
|
|
| 555 |
|
| 556 |
steps:
|
| 557 |
- name: Clone
|
| 558 |
-
uses: actions/checkout@
|
| 559 |
|
| 560 |
- name: Configure
|
| 561 |
run: |
|
|
@@ -573,24 +573,24 @@ jobs:
|
|
| 573 |
|
| 574 |
steps:
|
| 575 |
- name: Clone
|
| 576 |
-
uses: actions/checkout@
|
| 577 |
with:
|
| 578 |
path: whisper
|
| 579 |
|
| 580 |
- name: Clone
|
| 581 |
-
uses: actions/checkout@
|
| 582 |
with:
|
| 583 |
repository: ggerganov/ggml
|
| 584 |
path: ggml
|
| 585 |
|
| 586 |
- name: Install Java
|
| 587 |
-
uses: actions/setup-java@
|
| 588 |
with:
|
| 589 |
distribution: zulu
|
| 590 |
-
java-version:
|
| 591 |
|
| 592 |
- name: Setup Android SDK
|
| 593 |
-
uses: android-actions/setup-android@
|
| 594 |
|
| 595 |
- name: Build
|
| 596 |
run: |
|
|
@@ -608,20 +608,19 @@ jobs:
|
|
| 608 |
|
| 609 |
steps:
|
| 610 |
- name: Clone
|
| 611 |
-
uses: actions/checkout@
|
| 612 |
|
| 613 |
- name: set up JDK 11
|
| 614 |
-
uses: actions/setup-java@
|
| 615 |
with:
|
| 616 |
java-version: '11'
|
| 617 |
distribution: 'temurin'
|
| 618 |
cache: gradle
|
| 619 |
|
| 620 |
- name: Setup Android SDK
|
| 621 |
-
uses: android-actions/setup-android@
|
| 622 |
with:
|
| 623 |
-
|
| 624 |
-
build-tools-version: 30.0.3
|
| 625 |
|
| 626 |
- name: Build
|
| 627 |
run: |
|
|
@@ -633,15 +632,16 @@ jobs:
|
|
| 633 |
needs: [ 'windows' ]
|
| 634 |
runs-on: windows-latest
|
| 635 |
steps:
|
| 636 |
-
- uses: actions/checkout@
|
| 637 |
|
| 638 |
- name: Install Java
|
| 639 |
-
uses: actions/setup-java@
|
| 640 |
with:
|
| 641 |
-
|
|
|
|
| 642 |
|
| 643 |
- name: Download Windows lib
|
| 644 |
-
uses: actions/download-artifact@
|
| 645 |
with:
|
| 646 |
name: win32-x86-64_whisper.dll
|
| 647 |
path: bindings/java/build/generated/resources/main/win32-x86-64
|
|
@@ -654,7 +654,7 @@ jobs:
|
|
| 654 |
./gradlew build
|
| 655 |
|
| 656 |
- name: Upload jar
|
| 657 |
-
uses: actions/upload-artifact@
|
| 658 |
with:
|
| 659 |
name: whispercpp.jar
|
| 660 |
path: bindings/java/build/libs/whispercpp-*.jar
|
|
@@ -676,7 +676,7 @@ jobs:
|
|
| 676 |
|
| 677 |
steps:
|
| 678 |
- name: Clone
|
| 679 |
-
uses: actions/checkout@
|
| 680 |
|
| 681 |
- name: Test quantize
|
| 682 |
run: |
|
|
|
|
| 15 |
|
| 16 |
steps:
|
| 17 |
- name: Clone
|
| 18 |
+
uses: actions/checkout@v4
|
| 19 |
|
| 20 |
- name: Set up QEMU
|
| 21 |
+
uses: docker/setup-qemu-action@v3
|
| 22 |
|
| 23 |
- name: Build ${{ matrix.arch }}
|
| 24 |
run: |
|
|
|
|
| 36 |
|
| 37 |
steps:
|
| 38 |
- name: Clone
|
| 39 |
+
uses: actions/checkout@v4
|
| 40 |
|
| 41 |
- name: Dependencies
|
| 42 |
run: |
|
|
|
|
| 53 |
|
| 54 |
steps:
|
| 55 |
- name: Clone
|
| 56 |
+
uses: actions/checkout@v4
|
| 57 |
|
| 58 |
- name: Build
|
| 59 |
+
uses: cross-platform-actions/action@v0.24.0
|
| 60 |
with:
|
| 61 |
operating_system: freebsd
|
| 62 |
version: '13.2'
|
|
|
|
| 77 |
|
| 78 |
steps:
|
| 79 |
- name: Clone
|
| 80 |
+
uses: actions/checkout@v4
|
| 81 |
|
| 82 |
- name: Set up QEMU
|
| 83 |
+
uses: docker/setup-qemu-action@v3
|
| 84 |
|
| 85 |
- name: Build ${{ matrix.arch }}
|
| 86 |
run: |
|
|
|
|
| 105 |
|
| 106 |
steps:
|
| 107 |
- name: Clone
|
| 108 |
+
uses: actions/checkout@v4
|
| 109 |
|
| 110 |
- name: Set up QEMU
|
| 111 |
+
uses: docker/setup-qemu-action@v3
|
| 112 |
|
| 113 |
- name: Build ${{ matrix.arch }}
|
| 114 |
run: |
|
|
|
|
| 133 |
|
| 134 |
steps:
|
| 135 |
- name: Clone
|
| 136 |
+
uses: actions/checkout@v4
|
| 137 |
|
| 138 |
- name: Set up QEMU
|
| 139 |
+
uses: docker/setup-qemu-action@v3
|
| 140 |
|
| 141 |
- name: Build ${{ matrix.arch }}
|
| 142 |
run: |
|
|
|
|
| 165 |
|
| 166 |
steps:
|
| 167 |
- name: Clone
|
| 168 |
+
uses: actions/checkout@v4
|
| 169 |
|
| 170 |
- name: add oneAPI to apt
|
| 171 |
shell: bash
|
|
|
|
| 189 |
|
| 190 |
- name: Clone
|
| 191 |
id: checkout
|
| 192 |
+
uses: actions/checkout@v4
|
| 193 |
|
| 194 |
- name: Build
|
| 195 |
id: cmake_build
|
|
|
|
| 215 |
|
| 216 |
steps:
|
| 217 |
- name: Clone
|
| 218 |
+
uses: actions/checkout@v4
|
| 219 |
|
| 220 |
- name: add oneAPI to apt
|
| 221 |
shell: bash
|
|
|
|
| 239 |
|
| 240 |
- name: Clone
|
| 241 |
id: checkout
|
| 242 |
+
uses: actions/checkout@v4
|
| 243 |
|
| 244 |
- name: Build
|
| 245 |
id: cmake_build
|
|
|
|
| 262 |
|
| 263 |
steps:
|
| 264 |
- name: Clone
|
| 265 |
+
uses: actions/checkout@v4
|
| 266 |
|
| 267 |
- name: Setup ${{ matrix.sys }}
|
| 268 |
uses: msys2/setup-msys2@v2
|
|
|
|
| 328 |
|
| 329 |
steps:
|
| 330 |
- name: Clone
|
| 331 |
+
uses: actions/checkout@v4
|
| 332 |
|
| 333 |
- name: Add msbuild to PATH
|
| 334 |
+
uses: microsoft/setup-msbuild@v2
|
| 335 |
|
| 336 |
- name: Fetch SDL2 and set SDL2_DIR
|
| 337 |
if: matrix.sdl2 == 'ON'
|
|
|
|
| 356 |
run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
|
| 357 |
|
| 358 |
- name: Upload dll
|
| 359 |
+
uses: actions/upload-artifact@v4
|
| 360 |
with:
|
| 361 |
name: ${{ matrix.jnaPath }}_whisper.dll
|
| 362 |
path: build/bin/${{ matrix.build }}/whisper.dll
|
| 363 |
|
| 364 |
- name: Upload binaries
|
| 365 |
if: matrix.sdl2 == 'ON'
|
| 366 |
+
uses: actions/upload-artifact@v4
|
| 367 |
with:
|
| 368 |
name: whisper-bin-${{ matrix.arch }}
|
| 369 |
path: build/bin/${{ matrix.build }}
|
|
|
|
| 392 |
|
| 393 |
steps:
|
| 394 |
- name: Clone
|
| 395 |
+
uses: actions/checkout@v4
|
| 396 |
|
| 397 |
- name: Add msbuild to PATH
|
| 398 |
+
uses: microsoft/setup-msbuild@v2
|
| 399 |
|
| 400 |
- name: Fetch OpenBLAS
|
| 401 |
if: matrix.blas == 'ON'
|
|
|
|
| 453 |
|
| 454 |
- name: Upload binaries
|
| 455 |
if: matrix.blas == 'ON' && matrix.sdl2 == 'ON'
|
| 456 |
+
uses: actions/upload-artifact@v4
|
| 457 |
with:
|
| 458 |
name: whisper-blas${{ matrix.clblast == 'ON' && '-clblast' || ''}}-bin-${{ matrix.arch }}
|
| 459 |
path: build/bin/${{ matrix.build }}
|
|
|
|
| 476 |
|
| 477 |
steps:
|
| 478 |
- name: Clone
|
| 479 |
+
uses: actions/checkout@v4
|
| 480 |
|
| 481 |
- name: Add msbuild to PATH
|
| 482 |
+
uses: microsoft/setup-msbuild@v2
|
| 483 |
|
| 484 |
- name: Install CUDA Toolkit
|
| 485 |
id: cuda-toolkit
|
| 486 |
+
uses: Jimver/[email protected].15
|
| 487 |
with:
|
| 488 |
cuda: '${{ matrix.cuda-toolkit }}'
|
| 489 |
|
|
|
|
| 519 |
|
| 520 |
- name: Upload binaries
|
| 521 |
if: matrix.sdl2 == 'ON'
|
| 522 |
+
uses: actions/upload-artifact@v4
|
| 523 |
with:
|
| 524 |
name: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}
|
| 525 |
path: build/bin/${{ matrix.build }}
|
|
|
|
| 533 |
|
| 534 |
steps:
|
| 535 |
- name: Clone
|
| 536 |
+
uses: actions/checkout@v4
|
| 537 |
|
| 538 |
- name: Setup emsdk
|
| 539 |
+
uses: mymindstorm/setup-emsdk@v14
|
| 540 |
|
| 541 |
- name: Verify
|
| 542 |
run: emcc -v
|
|
|
|
| 555 |
|
| 556 |
steps:
|
| 557 |
- name: Clone
|
| 558 |
+
uses: actions/checkout@v4
|
| 559 |
|
| 560 |
- name: Configure
|
| 561 |
run: |
|
|
|
|
| 573 |
|
| 574 |
steps:
|
| 575 |
- name: Clone
|
| 576 |
+
uses: actions/checkout@v4
|
| 577 |
with:
|
| 578 |
path: whisper
|
| 579 |
|
| 580 |
- name: Clone
|
| 581 |
+
uses: actions/checkout@v4
|
| 582 |
with:
|
| 583 |
repository: ggerganov/ggml
|
| 584 |
path: ggml
|
| 585 |
|
| 586 |
- name: Install Java
|
| 587 |
+
uses: actions/setup-java@v4
|
| 588 |
with:
|
| 589 |
distribution: zulu
|
| 590 |
+
java-version: 21
|
| 591 |
|
| 592 |
- name: Setup Android SDK
|
| 593 |
+
uses: android-actions/setup-android@v3
|
| 594 |
|
| 595 |
- name: Build
|
| 596 |
run: |
|
|
|
|
| 608 |
|
| 609 |
steps:
|
| 610 |
- name: Clone
|
| 611 |
+
uses: actions/checkout@v4
|
| 612 |
|
| 613 |
- name: set up JDK 11
|
| 614 |
+
uses: actions/setup-java@v4
|
| 615 |
with:
|
| 616 |
java-version: '11'
|
| 617 |
distribution: 'temurin'
|
| 618 |
cache: gradle
|
| 619 |
|
| 620 |
- name: Setup Android SDK
|
| 621 |
+
uses: android-actions/setup-android@v3
|
| 622 |
with:
|
| 623 |
+
cmdline-tools-version: 9.0
|
|
|
|
| 624 |
|
| 625 |
- name: Build
|
| 626 |
run: |
|
|
|
|
| 632 |
needs: [ 'windows' ]
|
| 633 |
runs-on: windows-latest
|
| 634 |
steps:
|
| 635 |
+
- uses: actions/checkout@v4
|
| 636 |
|
| 637 |
- name: Install Java
|
| 638 |
+
uses: actions/setup-java@v4
|
| 639 |
with:
|
| 640 |
+
distribution: zulu
|
| 641 |
+
java-version: 20
|
| 642 |
|
| 643 |
- name: Download Windows lib
|
| 644 |
+
uses: actions/download-artifact@v4
|
| 645 |
with:
|
| 646 |
name: win32-x86-64_whisper.dll
|
| 647 |
path: bindings/java/build/generated/resources/main/win32-x86-64
|
|
|
|
| 654 |
./gradlew build
|
| 655 |
|
| 656 |
- name: Upload jar
|
| 657 |
+
uses: actions/upload-artifact@v4
|
| 658 |
with:
|
| 659 |
name: whispercpp.jar
|
| 660 |
path: bindings/java/build/libs/whispercpp-*.jar
|
|
|
|
| 676 |
|
| 677 |
steps:
|
| 678 |
- name: Clone
|
| 679 |
+
uses: actions/checkout@v4
|
| 680 |
|
| 681 |
- name: Test quantize
|
| 682 |
run: |
|