mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-11-07 08:34:37 +01:00
fc49ee4479
* Add Params#new_segment_callback= method * Add tests for Params#new_segment_callback= * Group tests for #transcribe * Don't use static for thread-safety * Set new_segment_callback only when necessary * Remove redundant check * [skip ci] Add Ruby version README * Revert "Group tests for #transcribe" This reverts commit71b65b00cc
. * Revert "Add tests for Params#new_segment_callback=" This reverts commit81e6df3bab
. * Add test for Context#full_n_segments * Add Context#full_n_segments * Add tests for lang API * Add lang API * Add tests for Context#full_lang_id API * Add Context#full_lang_id * Add abnormal test cases for lang * Raise appropriate errors from lang APIs * Add tests for Context#full_get_segment_t{0,1} API * Add Context#full_get_segment_t{0,1} * Add tests for Context#full_get_segment_speaker_turn_next API * Add Context#full_get_segment_speaker_turn_next * Add tests for Context#full_get_segment_text * Add Context#full_get_setgment_text * Add tests for Params#new_segment_callback= * Run new segment callback * Split tests to multiple files * Use container struct for new segment callback * Add tests for Params#new_segment_callback_user_data= * Add Whisper::Params#new_user_callback_user_data= * Add GC-related test for new segment callback * Protect new segment callback related structs from GC * Add meaningful test for build * Rename: new_segment_callback_user_data -> new_segment_callback_container * Add tests for Whisper::Segment * Add Whisper::Segment and Whisper::Context#each_segment * Extract c_ruby_whisper_callback_container_allocate() * Add test for Whisper::Params#on_new_segment * Add Whisper::Params#on_new_egment * Assign symbol IDs to variables * Make extsources.yaml simpler * Update README * Add document comments * Add test for calling Whisper::Params#on_new_segment multiple times * Add file dependencies to GitHub actions config and .gitignore * Add more files to ext/.gitignore
76 lines
2.0 KiB
YAML
76 lines
2.0 KiB
YAML
name: Bindings Tests (Ruby)
|
|
on:
|
|
push:
|
|
paths:
|
|
- bindings/ruby/**
|
|
- src/whisper.cpp
|
|
- include/whisper.h
|
|
- ggml/src/ggml.c
|
|
- ggml/src/ggml-impl.h
|
|
- ggml/src/ggml-aarch64.h
|
|
- ggml/src/ggml-aarch64.c
|
|
- ggml/src/ggml-alloc.c
|
|
- ggml/src/ggml-backend-impl.h
|
|
- ggml/src/ggml-backend.cpp
|
|
- ggml/src/ggml-common.h
|
|
- ggml/src/ggml-quants.h
|
|
- ggml/src/ggml-quants.c
|
|
- ggml/src/ggml-cpu-impl.h
|
|
- ggml/src/ggml-metal.m
|
|
- ggml/src/ggml-metal.metal
|
|
- ggml/src/ggml-blas.cpp
|
|
- ggml/include/ggml.h
|
|
- ggml/include/ggml-alloc.h
|
|
- ggml/include/ggml-backend.h
|
|
- ggml/include/ggml-cuda.h
|
|
- ggml/include/ggml-kompute.h
|
|
- ggml/include/ggml-metal.h
|
|
- ggml/include/ggml-sycl.h
|
|
- ggml/include/ggml-vulkan.h
|
|
- ggml/include/ggml-blas.h
|
|
- scripts/get-flags.mk
|
|
- examples/dr_wav.h
|
|
pull_request:
|
|
paths:
|
|
- bindings/ruby/**
|
|
- src/whisper.cpp
|
|
- include/whisper.h
|
|
- ggml/src/ggml.c
|
|
- ggml/src/ggml-impl.h
|
|
- ggml/src/ggml-aarch64.h
|
|
- ggml/src/ggml-aarch64.c
|
|
- ggml/src/ggml-alloc.c
|
|
- ggml/src/ggml-backend-impl.h
|
|
- ggml/src/ggml-backend.cpp
|
|
- ggml/src/ggml-common.h
|
|
- ggml/src/ggml-quants.h
|
|
- ggml/src/ggml-quants.c
|
|
- ggml/src/ggml-cpu-impl.h
|
|
- ggml/src/ggml-metal.m
|
|
- ggml/src/ggml-metal.metal
|
|
- ggml/src/ggml-blas.cpp
|
|
- ggml/include/ggml.h
|
|
- ggml/include/ggml-alloc.h
|
|
- ggml/include/ggml-backend.h
|
|
- ggml/include/ggml-cuda.h
|
|
- ggml/include/ggml-kompute.h
|
|
- ggml/include/ggml-metal.h
|
|
- ggml/include/ggml-sycl.h
|
|
- ggml/include/ggml-vulkan.h
|
|
- ggml/include/ggml-blas.h
|
|
- scripts/get-flags.mk
|
|
- examples/dr_wav.h
|
|
|
|
jobs:
|
|
ubuntu-latest:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: bindings/ruby
|
|
steps:
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '3.0'
|
|
- uses: actions/checkout@v4
|
|
- run: rake test
|