diff options
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r-- | .github/workflows/test.yml | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..6d72e4d2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,73 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + name: >- + ${{ matrix.os }} ${{ matrix.ruby }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, macos-latest ] + ruby: [ head, 2.7, 2.6, 2.5, 2.4, 2.3 ] + steps: + - name: repo checkout + uses: actions/checkout@v2 + + - name: load ruby + uses: ruby/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 + + test-windows: + name: >- + ${{ matrix.os }} ${{ matrix.ruby }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ windows-latest ] + ruby: [ mswin, mingw, 2.7, 2.6, 2.5, 2.4, 2.3 ] + steps: + - name: repo checkout + uses: actions/checkout@v2 + + - name: load ruby, update gcc, install openssl + uses: MSP-Greg/actions-ruby@mswin + with: + ruby-version: ${{ matrix.ruby }} + base: update + mingw: openssl + + - name: depends + run: rake install_dependencies + + - name: compile + shell: cmd + env: + RVERS: ${{ matrix.ruby }} + run: | + if "%RVERS%" == "mswin" ( + call "%VCVARS%" + rake compile -- --with-openssl-dir=C:/openssl-win --enable-debug + ) else ( + if "%RVERS%" == "2.3" ( + rake compile -- --with-openssl-dir=C:/openssl-win --enable-debug + ) else ( + rake compile -- --enable-debug + ) + ) + + - name: test + run: rake test TESTOPTS="-v --no-show-detail-immediately" OSSL_MDEBUG=1 |