|
10 | 10 | strategy: |
11 | 11 | fail-fast: false |
12 | 12 | matrix: |
13 | | - os: [ ubuntu-latest, macos-latest ] |
| 13 | + os: [ ubuntu-latest, macos-latest, windows-latest ] |
14 | 14 | ruby: [ head, "3.1", "3.0", "2.7", "2.6" ] |
| 15 | + include: |
| 16 | + - { os: windows-latest, ruby: mswin } |
| 17 | + - { os: ubuntu-22.04, ruby: head } |
| 18 | + - { os: ubuntu-22.04, ruby: "3.1" } |
15 | 19 | steps: |
16 | 20 | - name: repo checkout |
17 | 21 | uses: actions/checkout@v3 |
|
30 | 34 | - name: test |
31 | 35 | run: rake test TESTOPTS="-v --no-show-detail-immediately" OSSL_MDEBUG=1 |
32 | 36 |
|
33 | | - test-windows: |
34 | | - name: >- |
35 | | - ${{ matrix.os }} ${{ matrix.ruby }} |
36 | | - runs-on: ${{ matrix.os }} |
37 | | - strategy: |
38 | | - fail-fast: false |
39 | | - matrix: |
40 | | - os: [ windows-latest ] |
41 | | - ruby: [ mswin, mingw, "3.1", "3.0", "2.7", "2.6" ] |
42 | | - steps: |
43 | | - - name: repo checkout |
44 | | - uses: actions/checkout@v3 |
45 | | - |
46 | | - - name: load ruby, install/update gcc, install openssl |
47 | | - uses: MSP-Greg/setup-ruby-pkgs@v1 |
48 | | - with: |
49 | | - ruby-version: ${{ matrix.ruby }} |
50 | | - mingw: ${{ matrix.ruby != 'mswin' && '_upgrade_ openssl' || '' }} |
51 | | - vcpkg: ${{ matrix.ruby == 'mswin' && 'openssl' || '' }} |
52 | | - |
53 | | - - name: depends |
54 | | - run: bundle install |
55 | | - |
56 | | - # pkg-config is disabled because it can pick up the different OpenSSL installation |
57 | | - # SSL_DIR is set as needed by MSP-Greg/setup-ruby-pkgs |
58 | | - # only used with mswin |
59 | | - - name: compile |
60 | | - run: rake compile -- --enable-debug --without-pkg-config $env:SSL_DIR |
61 | | - |
62 | | - - name: test |
63 | | - run: rake test TESTOPTS="-v --no-show-detail-immediately" OSSL_MDEBUG=1 |
64 | | - |
65 | 37 | test-openssls: |
66 | 38 | name: >- |
67 | 39 | ${{ matrix.openssl }} |
|
0 commit comments