]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ci : add emscripten build
authorGeorgi Gerganov <redacted>
Thu, 5 Jan 2023 20:02:58 +0000 (22:02 +0200)
committerGeorgi Gerganov <redacted>
Thu, 5 Jan 2023 20:10:20 +0000 (22:10 +0200)
.github/workflows/build.yml
examples/main/main.cpp

index 9dc92ea0158e090b3b1716d1beee36c4a6dbf3f5..76278dae75625f9208a6ae6a7bfd5d0ec629403f 100644 (file)
@@ -235,3 +235,33 @@ jobs:
               with:
                 name: whisper-blas-bin-${{ matrix.arch }}
                 path: build/bin/${{ matrix.build }}
+
+    emscripten:
+        runs-on: ubuntu-latest
+
+        strategy:
+            matrix:
+                build: [Release]
+
+        steps:
+            - name: Clone
+              uses: actions/checkout@v1
+
+            - name: Dependencies
+              run: |
+                wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz
+                tar -xvf master.tar.gz
+                emsdk-master/emsdk update
+                emsdk-master/emsdk install latest
+                emsdk-master/emsdk activate latest
+
+            - name: Configure
+              run: echo "tmp"
+
+            - name: Build
+              run: |
+                pushd emsdk-master
+                source ./emsdk_env.sh
+                popd
+                emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
+                make
index ef903aa71a660cb14026dc84fc5ab604bda3713f..d387a77c8153fe9943b89b318166ec1b1e0e5b79 100644 (file)
@@ -199,7 +199,6 @@ void whisper_print_segment_callback(struct whisper_context * ctx, int n_new, voi
         }
 
         if (params.diarize && pcmf32s.size() == 2) {
-
             const int64_t n_samples = pcmf32s[0].size();
 
             const int64_t is0 = timestamp_to_sample(t0, n_samples);