mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-11-07 08:34:37 +01:00
d3f7137cc9
* Improve Rakefile * Remove intermediate files * Remove unnecessary manipulations from extconf.rb * Add README and LINCENSE to source files * Manage ext source files using YAML file * Use extsources.yaml to include files into gem package file * Add git-managed source files to build dependency * Add test task * Download model for test if not exists * Add test for build * Ignore gem package directory * Enable GitHub action for Ruby binding * Fix model name * Build lib file for test * Use extension for each platform * Use extension for each platform on testing * Move built lib file rather than copy * Add intermediate files to clean targets
66 lines
1.7 KiB
YAML
66 lines
1.7 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/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
|
|
- 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/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
|
|
- 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
|