aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/workflow.yml
blob: a9a0440d93eaf9a0b5fc9b7227d7d1c4425b67cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: OpenSSL

on:
  push:
    branches:
      - '*'
  pull_request:
    branches:
      - '*'

jobs:
  build:
    name: >-
      OS: ${{ matrix.os }}  Ruby: ${{ matrix.ruby }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ 'ubuntu-16.04', 'ubuntu-18.04', 'macos', 'windows-latest' ]
        ruby: [ '2.3.x', '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
          ruby: 2.3.x
        - os: macos
          ruby: 2.3.x
        - os: windows-latest
          ruby: 2.3.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: windows - update MSYS2, openssl
      if:   startsWith(matrix.os, 'windows')
      uses: MSP-Greg/msys2-action@master
      with:
        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