Skip to content

Commit 07c736e

Browse files
committed
ci : try to add ruby workflow
1 parent d1a2145 commit 07c736e

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

.github/workflows/bindings.yml renamed to .github/workflows/bindings-go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Bindings Tests
1+
name: Bindings Tests (Go)
22
on:
33
push:
44
paths:

.github/workflows/bindings-ruby.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Bindings Tests (Ruby)
2+
on:
3+
push:
4+
paths:
5+
- bindings/ruby/**
6+
- whisper.h
7+
pull_request:
8+
paths:
9+
- bindings/ruby/**
10+
- whisper.h
11+
12+
jobs:
13+
ubuntu-latest:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/setup-ruby@v1
17+
with:
18+
ruby-version: '2.6'
19+
- uses: actions/checkout@v1
20+
- run: |
21+
cd bindings/ruby
22+
ruby extconf.rb && make

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ jobs:
1414
sudo apt-get update
1515
sudo apt-get install build-essential
1616
sudo apt-get install libsdl2-dev
17-
sudo apt-get install ruby-dev
1817
1918
- name: Build
2019
run: |
2120
make
2221
make stream
23-
cd bindings/ruby/ext && ruby extconf.rb && make
2422
2523
macOS-latest:
2624
runs-on: macOS-latest
@@ -32,13 +30,12 @@ jobs:
3230
- name: Dependencies
3331
run: |
3432
brew update
35-
brew install sdl2 ruby
33+
brew install sdl2
3634
3735
- name: Build
3836
run: |
3937
make
4038
make stream
41-
cd bindings/ruby/ext && ruby extconf.rb && make
4239
4340
ubuntu-latest-gcc:
4441
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)