summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMSP-Greg <MSP-Greg@users.noreply.github.com>2020-04-18 19:35:19 -0500
committerGitHub <noreply@github.com>2020-04-18 17:35:19 -0700
commitc0b93267497d47858ea9539ef863be321bc1ddbf (patch)
treec0ad5915f08d74551bcabf054fc258d517dbbea5 /.github
parentcf332f688baec4806f07fa829ca2e5911c29e39a (diff)
Update workflows/mingw.yml - use setup-ruby-pkgs (#3042)
MSP-Greg/actions-ruby is deprecated...
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/mingw.yml17
1 files 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")