ggerganov commited on
Commit
2f8e217
·
unverified ·
1 Parent(s): 02b3e34

ci : add emscripten build

Browse files
.github/workflows/build.yml CHANGED
@@ -235,3 +235,33 @@ jobs:
235
  with:
236
  name: whisper-blas-bin-${{ matrix.arch }}
237
  path: build/bin/${{ matrix.build }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
  with:
236
  name: whisper-blas-bin-${{ matrix.arch }}
237
  path: build/bin/${{ matrix.build }}
238
+
239
+ emscripten:
240
+ runs-on: ubuntu-latest
241
+
242
+ strategy:
243
+ matrix:
244
+ build: [Release]
245
+
246
+ steps:
247
+ - name: Clone
248
+ uses: actions/checkout@v1
249
+
250
+ - name: Dependencies
251
+ run: |
252
+ wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz
253
+ tar -xvf master.tar.gz
254
+ emsdk-master/emsdk update
255
+ emsdk-master/emsdk install latest
256
+ emsdk-master/emsdk activate latest
257
+
258
+ - name: Configure
259
+ run: echo "tmp"
260
+
261
+ - name: Build
262
+ run: |
263
+ pushd emsdk-master
264
+ source ./emsdk_env.sh
265
+ popd
266
+ emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
267
+ make
examples/main/main.cpp CHANGED
@@ -199,7 +199,6 @@ void whisper_print_segment_callback(struct whisper_context * ctx, int n_new, voi
199
  }
200
 
201
  if (params.diarize && pcmf32s.size() == 2) {
202
-
203
  const int64_t n_samples = pcmf32s[0].size();
204
 
205
  const int64_t is0 = timestamp_to_sample(t0, n_samples);
 
199
  }
200
 
201
  if (params.diarize && pcmf32s.size() == 2) {
 
202
  const int64_t n_samples = pcmf32s[0].size();
203
 
204
  const int64_t is0 = timestamp_to_sample(t0, n_samples);