From c0b93267497d47858ea9539ef863be321bc1ddbf Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Sat, 18 Apr 2020 19:35:19 -0500 Subject: Update workflows/mingw.yml - use setup-ruby-pkgs (#3042) MSP-Greg/actions-ruby is deprecated... --- .github/workflows/mingw.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index b6704299e5..8ee58fa491 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -2,10 +2,7 @@ name: MinGW on: [push, pull_request] # Notes: -# Action ENV TEMP and TMP are short 8.3 paths, but the long path differs. -# Code uses TMPDIR, which is Ruby's 'first' check -# -# Console encoding causes issues, see test-all & test-spec steps +# Actions console encoding causes issues, see test-all & test-spec steps # jobs: make: @@ -46,11 +43,10 @@ jobs: shell: bash id: commit_info - name: Set up Ruby & MSYS2 - uses: MSP-Greg/actions-ruby@master + uses: MSP-Greg/setup-ruby-pkgs@v1 with: - ruby-version: 2.6.x - base: update - mingw: gdbm gmp libffi libyaml openssl ragel readline + ruby-version: 2.6 + mingw: _upgrade_ gdbm gmp libffi libyaml openssl ragel readline msys2: automake1.16 bison - name: where check run: | @@ -110,14 +106,12 @@ jobs: timeout-minutes: 5 working-directory: build run: | - $env:TMPDIR = "$pwd/../temp" make test - name: test-all timeout-minutes: 50 working-directory: build run: | - $env:TMPDIR = "$pwd/../temp" # Actions uses UTF8, causes test failures, similar to normal OS setup $PSDefaultParameterValues['*:Encoding'] = 'utf8' [Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437") @@ -129,8 +123,7 @@ jobs: timeout-minutes: 10 working-directory: src/spec/ruby run: | - $env:TMPDIR = "$pwd/../../../temp" - $env:PATH = "$pwd/../../../install/bin;$env:PATH" + $env:Path = "$pwd/../../../install/bin;$env:Path" # Actions uses UTF8, causes test failures, similar to normal OS setup $PSDefaultParameterValues['*:Encoding'] = 'utf8' [Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437") -- cgit v1.2.3