Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Docurium

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:

strategy:
fail-fast: false
matrix:
ruby: [head, 3.0, 2.7, 2.6]
llvm: ["6.0", 7, 8, 9, 10]
os: [ ubuntu-18.04 ]
include:
- os: macos-latest
ruby: 2.6
llvm: ~ # system

name: Ruby ${{ matrix.ruby }} / LLVM ${{ matrix.llvm }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is "debug" left over from some other testing? Is the endsWith necessary? Wouldn't matrix.ruby match head exactly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a verbatim copy-paste from the documentation, where there's much more than MRI Ruby handled. I'm tempted to keep it as-is for future-proofing, but I'll gladly defer to your preference.


steps:
- uses: actions/checkout@v2
- name: Install Linux packages
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install -y libclang-${{ matrix.llvm }}-dev llvm-${{ matrix.llvm }} clang-${{ matrix.llvm }}
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: |
[ -x /usr/bin/llvm-config-${{ matrix.llvm }} ] && export LLVM_CONFIG=llvm-config-${{ matrix.llvm }}
bundle exec rake
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
source "http://rubygems.org"

platforms :rbx do
gem 'rubysl', '~> 2.2'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.0.0')
platforms :rbx do
gem 'rubysl', '~> 2.2'
end
end

gemspec
Expand Down