Skip to content

Commit ef56a14

Browse files
committed
ci: add github action over ubuntu and macos
1 parent 5b9a477 commit ef56a14

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Ruby
9+
10+
on:
11+
push:
12+
branches: [ master ]
13+
pull_request:
14+
branches: [ master ]
15+
16+
jobs:
17+
test:
18+
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest, macos-latest]
23+
ruby-version: ['2.6', '2.7', '3.0']
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Brew automake
28+
run: brew install automake
29+
if: matrix.os == 'macos-latest'
30+
- name: Set up Ruby
31+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
32+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
33+
# uses: ruby/setup-ruby@v1
34+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
35+
with:
36+
ruby-version: ${{ matrix.ruby-version }}
37+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
38+
- name: Build secp256k1
39+
run: bundle exec rake build_libsecp256k1
40+
- name: Run tests
41+
run: bundle exec rake

0 commit comments

Comments
 (0)