aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorMSP-Greg <MSP-Greg@users.noreply.github.com>2019-12-28 19:00:08 -0600
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-12-29 21:07:48 +1300
commitba87e577d16470efbb9764c018632d81659454d3 (patch)
tree2910cc8f42dc27ec2fd25004b155082304fa42ba /.github/workflows
parentafa8b82e9aefe4f46cf444aabbd25b1a2a6768a3 (diff)
downloadruby-openssl-ba87e577d16470efbb9764c018632d81659454d3.tar.gz
Update Actions
1. Add Ubuntu rvm master and 2.3.8 2. Add MinGW master and 2.3.3 (last MinGW build) 3. Switch from Windows helper MSP-Greg/msys2-action to MSP-Greg/actions-ruby 4. MinGW installs current Rubies, not outdated Actions builds.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/workflow.yml123
1 files changed, 85 insertions, 38 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 8ef92587..f37c02ef 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -1,12 +1,6 @@
name: OpenSSL
-on:
- push:
- branches:
- - '*'
- pull_request:
- branches:
- - '*'
+on: [push, pull_request]
jobs:
build:
@@ -16,37 +10,90 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: ['ubuntu-16.04', 'ubuntu-18.04', 'macos', 'windows-latest']
- ruby: ['2.4.x', '2.5.x', '2.6.x']
- exclude:
- - os: ubuntu-16.04
- ruby: 2.4.x
- - os: ubuntu-16.04
- ruby: 2.5.x
- - os: ubuntu-16.04
- ruby: 2.6.x
+ os: [ 'ubuntu-18.04', 'macos' ]
+ ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
steps:
- - name: repo checkout
- uses: actions/checkout@v1
- with:
- fetch-depth: 10
- - name: load ruby
- uses: actions/setup-ruby@v1
- with:
- ruby-version: ${{matrix.ruby}}
+ - name: repo checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 10
+ - name: load ruby
+ uses: actions/setup-ruby@v1
+ with:
+ ruby-version: ${{matrix.ruby}}
+ - name: depends
+ run: rake install_dependencies
+ - name: compile
+ run: rake compile -- --enable-debug
+ - name: test
+ run: rake test TESTOPTS="-v --no-show-detail-immediately" OSSL_MDEBUG=1
+ env:
+ CI: true
- - name: windows - update MSYS2, openssl
- if: startsWith(matrix.os, 'windows')
- uses: MSP-Greg/msys2-action@master
- with:
- base: update
- mingw: openssl
+ # tests MinGW Ruby 2.3 thru master
+ mingw:
+ name: >-
+ OS: windows-latest Ruby: ${{matrix.ruby}}
+ runs-on: windows-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ ruby: [ '9.9.x', '2.6.x', '2.5.x', '2.4.x', '2.3.x' ]
+ steps:
+ - name: repo checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 10
+ - name: load ruby, update gcc, install openssl
+ uses: MSP-Greg/actions-ruby@master
+ with:
+ ruby-version: ${{ matrix.ruby }}
+ base: update
+ mingw: openssl
+ - name: depends
+ run: rake install_dependencies
+ - name: compile
+ run: rake compile -- --enable-debug
+ - name: test
+ run: rake test TESTOPTS="-v --no-show-detail-immediately" OSSL_MDEBUG=1
+ env:
+ CI: true
- - name: depends
- run: rake install_dependencies
- - name: compile
- run: rake compile -- --enable-debug
- - name: test
- run: rake test TESTOPTS="-v --no-show-detail-immediately" OSSL_MDEBUG=1
- env:
- CI: true
+ # tests RVM Ruby 2.3.8 and master
+ rvm:
+ name: >-
+ OS: ubuntu rvm Ruby: ${{ matrix.cfg.ruby }}
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ cfg:
+ - { ruby: '2.3.8' , openssl: 'libssl1.0-dev' }
+ - { ruby: '2.7.0' , openssl: '' }
+ steps:
+ - uses: actions/checkout@v2
+ - 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 openssl
+ if: matrix.cfg.openssl != ''
+ run: sudo apt-get -qy install ${{ matrix.cfg.openssl }}
+ - name: depends
+ run: |
+ source $HOME/.rvm/scripts/rvm
+ rake install_dependencies
+ - name: compile
+ run: |
+ source $HOME/.rvm/scripts/rvm
+ rake compile -- --enable-debug
+ - name: test
+ run: |
+ source $HOME/.rvm/scripts/rvm
+ rake test TESTOPTS="-v --no-show-detail-immediately" OSSL_MDEBUG=1
+ env:
+ CI: true \ No newline at end of file