From 2ded4e32dec54841e640da03ec1c1272831c2769 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Mon, 16 Mar 2020 18:54:44 -0500 Subject: Use setup-ruby-pkgs for Windows 1. Using correct MSYS compiler for Windows Ruby 2.3, previous CI used MSYS2 2. Ruby installation is done via a fork of setup-ruby --- .github/workflows/test.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c8d24472..0c605315 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,31 +43,19 @@ jobs: - name: repo checkout uses: actions/checkout@v2 - - name: load ruby, update gcc, install openssl - uses: MSP-Greg/actions-ruby@mswin + - name: load ruby, install/update gcc, install openssl + uses: MSP-Greg/setup-ruby-pkgs@v1 with: ruby-version: ${{ matrix.ruby }} - base: update - mingw: openssl + mingw: _upgrade_ openssl - name: depends run: rake install_dependencies + # SSL_DIR is set as needed by MSP-Greg/setup-ruby-pkgs + # only used with mswin - 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 - ) - ) + run: rake compile -- --enable-debug $env:SSL_DIR - name: test run: rake test TESTOPTS="-v --no-show-detail-immediately" OSSL_MDEBUG=1 -- cgit v1.2.3