Skip to content

Commit 1e4ce9b

Browse files
authored
Merge pull request #57 from tiennou/ci/gh-actions
Switch to Github Actions for CI
2 parents afd5ade + b77056d commit 1e4ce9b

File tree

3 files changed

+46
-18
lines changed

3 files changed

+46
-18
lines changed

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Docurium
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
ruby: [head, 3.0, 2.7, 2.6]
16+
llvm: ["6.0", 7, 8, 9, 10]
17+
os: [ ubuntu-18.04 ]
18+
include:
19+
- os: macos-latest
20+
ruby: 2.6
21+
llvm: ~ # system
22+
23+
name: Ruby ${{ matrix.ruby }} / LLVM ${{ matrix.llvm }} on ${{ matrix.os }}
24+
runs-on: ${{ matrix.os }}
25+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Install Linux packages
30+
if: runner.os == 'Linux'
31+
run: |
32+
sudo apt update
33+
sudo apt install -y libclang-${{ matrix.llvm }}-dev llvm-${{ matrix.llvm }} clang-${{ matrix.llvm }}
34+
- name: Set up Ruby ${{ matrix.ruby }}
35+
uses: ruby/setup-ruby@v1
36+
with:
37+
ruby-version: ${{ matrix.ruby }}
38+
bundler-cache: true
39+
- name: Run tests
40+
run: |
41+
[ -x /usr/bin/llvm-config-${{ matrix.llvm }} ] && export LLVM_CONFIG=llvm-config-${{ matrix.llvm }}
42+
bundle exec rake

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
source "http://rubygems.org"
22

3-
platforms :rbx do
4-
gem 'rubysl', '~> 2.2'
3+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.0.0')
4+
platforms :rbx do
5+
gem 'rubysl', '~> 2.2'
6+
end
57
end
68

79
gemspec

0 commit comments

Comments
 (0)