ci : try to add ruby workflow

pull/500/head
Georgi Gerganov 2 years ago
parent d1a2145cfc
commit 27b1a91937
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

@ -1,4 +1,4 @@
name: Bindings Tests name: Bindings Tests (Go)
on: on:
push: push:
paths: paths:

@ -0,0 +1,22 @@
name: Bindings Tests (Ruby)
on:
push:
paths:
- bindings/ruby/**
- whisper.h
pull_request:
paths:
- bindings/ruby/**
- whisper.h
jobs:
ubuntu-latest:
runs-on: ubuntu-latest
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- uses: actions/checkout@v1
- run: |
cd bindings/ruby/ext
ruby extconf.rb && make

@ -14,13 +14,11 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install build-essential sudo apt-get install build-essential
sudo apt-get install libsdl2-dev sudo apt-get install libsdl2-dev
sudo apt-get install ruby-dev
- name: Build - name: Build
run: | run: |
make make
make stream make stream
cd bindings/ruby/ext && ruby extconf.rb && make
macOS-latest: macOS-latest:
runs-on: macOS-latest runs-on: macOS-latest
@ -32,13 +30,12 @@ jobs:
- name: Dependencies - name: Dependencies
run: | run: |
brew update brew update
brew install sdl2 ruby brew install sdl2
- name: Build - name: Build
run: | run: |
make make
make stream make stream
cd bindings/ruby/ext && ruby extconf.rb && make
ubuntu-latest-gcc: ubuntu-latest-gcc:
runs-on: ubuntu-latest runs-on: ubuntu-latest

Loading…
Cancel
Save