-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (38 loc) · 985 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
paths: ['**/*.rb', '**/*.yml', '**/*.lock', '**/*.gemspec']
push:
branches:
- master
paths: ['**/*.rb', '**/*.yml', '**/*.lock', '**/*.gemspec']
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
parsec-build:
runs-on: ubuntu-22.04
strategy:
matrix:
ruby: ['2.5.5', '2.7.7', '2.7.8', '3.0.6', '3.1.4', '3.2.2']
steps:
- name: Clone
id: checkout
uses: actions/checkout@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Gems
id: gems
run: |
bundle install -j 5
- name: Build
id: build
run: |
gem build parsec.gemspec
gem install ./parsecs-*.gem --verbose
- name: Tests
id: tests
run: |
ruby -Ilib -Iext/libnativemath test/test_parsec.rb