Skip to content

Commit 4ecf6ae

Browse files
committed
Add Github Actions workflow
1 parent afd5ade commit 4ecf6ae

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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, 2.6, 2.5, 2.4]
16+
os: [ ubuntu-18.04, macos-latest ]
17+
18+
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
20+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Install Linux packages
25+
if: runner.os == 'Linux'
26+
run: |
27+
sudo apt update
28+
sudo apt install -y libclang-6.0-dev llvm-6.0 clang-6.0
29+
- name: Set up Ruby ${{ matrix.ruby }}
30+
uses: ruby/setup-ruby@v1
31+
with:
32+
ruby-version: ${{ matrix.ruby }}
33+
bundler-cache: true
34+
- name: Run tests
35+
run: |
36+
[ -x /usr/bin/llvm-config-6.0 ] && export LLVM_CONFIG=llvm-config-6.0
37+
bundle exec rake

0 commit comments

Comments
 (0)