1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Update Actions ruby.yml [changelog skip] (#2103)

* Update ruby.yml

Ruby 2.4 thru 2.7 on all platforms

Ubuntu 2.3, macOS 2.3, & Windows 2.4 use OpenSSL 1.0.2, all others are 1.1.1

JRuby fails tests

* .travis.yml - remove jobs similar to Actions
This commit is contained in:
MSP-Greg 2020-02-07 10:53:52 -06:00 committed by GitHub
parent e9cd7cc136
commit 10b4ffc378
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 71 deletions

View file

@ -1,30 +1,31 @@
name: Puma
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
on: [push, pull_request]
jobs:
build:
name: >-
OS: ${{ matrix.os }} Ruby: ${{ matrix.ruby }}
${{ matrix.os }} Ruby: ${{ matrix.ruby }}
env:
CI: true
TESTOPTS: -v
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-18.04', 'macos', 'windows-latest' ]
ruby: [ '2.4.x', '2.5.x', '2.6.x' ]
os: [ ubuntu-18.04, macos, windows-latest ]
ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7 ]
exclude:
- os: windows-latest
ruby: 2.3
steps:
- name: repo checkout
uses: actions/checkout@v1
with:
fetch-depth: 10
uses: actions/checkout@v2
- name: load ruby
uses: actions/setup-ruby@v1
uses: eregon/use-ruby-action@v1
with:
ruby-version: ${{ matrix.ruby }}
@ -34,8 +35,9 @@ jobs:
if [ "${{ matrix.os }}" == "macos" ]; then
brew install ragel
else
sudo apt-get install ragel
sudo apt-get -qy install ragel
fi
- name: windows - update MSYS2, openssl, ragel
if: startsWith(matrix.os, 'windows')
uses: MSP-Greg/msys2-action@master
@ -51,54 +53,6 @@ jobs:
run: bundle exec rake compile
- name: test
run: bundle exec rake
timeout-minutes: 10
env:
CI: true
TESTOPTS: -v
RUBYOPT: --enable-frozen-string-literal
rvm:
name: >-
OS: ${{ matrix.os }} Ruby: ${{ matrix.cfg.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-18.04' ]
cfg:
- { ruby: '2.3.8' , openssl: 'libssl1.0-dev' }
steps:
- uses: actions/checkout@v1
- name: Set up RVM
run: |
curl -sSL https://get.rvm.io | bash
- name: Set up Ruby
run: |
source $HOME/.rvm/scripts/rvm
rvm install ${{ matrix.cfg.ruby }} --binary --autolibs=disable
rvm --default use ${{ matrix.cfg.ruby }}
- name: install ragel, openssl
run: sudo apt-get --quiet --yes install ragel ${{ matrix.cfg.openssl }}
- name: RubyGems, Bundler Update
run: |
source $HOME/.rvm/scripts/rvm
gem update --system --no-document --conservative
- name: bundle install
run: |
source $HOME/.rvm/scripts/rvm
bundle install --jobs 4 --retry 3
- name: compile
run: |
source $HOME/.rvm/scripts/rvm
bundle exec rake compile
- name: test
run: |
source $HOME/.rvm/scripts/rvm
bundle exec rake
timeout-minutes: 10
env:
CI: true
TESTOPTS: -v
RUBYOPT: --enable-frozen-string-literal

View file

@ -33,13 +33,6 @@ matrix:
env:
- OS="Trusty 14.04 OpenSSL 1.0.1"
- RUBYOPT=""
- rvm: 2.6.4
dist: xenial
env: OS="Xenial 16.04 OpenSSL 1.0.2"
- rvm: 2.6.4
os: osx
osx_image: xcode11
env: OS="OSX xcode11 OpenSSL 1.1.1"
- rvm: jruby-9.2.9.0
env:
- JRUBY_OPTS="--debug"
@ -52,7 +45,6 @@ matrix:
- rvm: ruby-head
env: jit=yes
- rvm: truffleruby
- rvm: 2.7.0
allow_failures:
- rvm: jruby-9.2.9.0