Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
clean up workflow file
  • Loading branch information
RoryO committed Dec 9, 2019
commit fedcb391c1571dc3f843e837f3c00eeb46f1d3b9
21 changes: 7 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,32 @@ jobs:
strategy:
Copy link
Author

Choose a reason for hiding this comment

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

Updating and simplifying this. Dropping 2.3 as it's EOL and not available in the CI images.

fail-fast: false
matrix:
ruby: [ '2.3.7', '2.4.6', '2.5.5', '2.6.2' ]
ruby: [ '~> 2.4', '~> 2.5', '~> 2.6' ]
os: [ ubuntu-18.04, macOS-10.14 ]

runs-on: ${{ matrix.os }}

name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
name: ${{ matrix.ruby }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: update submodule
run: git submodule update --init

- name: Install Linux packages
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install -y cmake libssh2-1-dev openssh-client openssh-server

- name: Install macOS packages
if: runner.os == 'macOS'
run: ./vendor/libgit2/azure-pipelines/setup-osx.sh
- name: Set up Ruby on Linux
if: runner.os == 'Linux'

- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
version: ${{ matrix.ruby }}
- name: Set up Ruby on macOS
if: runner.os == 'macOS'
run: |
brew install rbenv
rbenv install ${{ matrix.ruby }}
rbenv local ${{ matrix.ruby }}

- name: run build
run: |
if [ -x rbenv ]; then eval "$(rbenv init -)"; fi
ruby --version
gem install bundler
bundle install --path vendor
./script/travisbuild