From c4665148cfac9540bbf4dd43b754fca49058a6a5 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Fri, 27 Mar 2020 18:21:02 -0500 Subject: [PATCH] Actions - add gcc --version output for MinGW Rubies --- .github/workflows/test.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3a03758..7447fdb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,14 +33,17 @@ jobs: - name: build compiler run: | ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first" - - name: ridk version (mingw) + - name: gcc and ridk version (mingw) if: startsWith(matrix.os, 'windows') run: | $abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ') - if (($abi -ge '2.4') -and $plat.Contains('mingw')) { - ridk version - } else { - echo 'ridk is unavailable' + if ($plat.Contains('mingw')) { + gcc --version + if ($abi -ge '2.4') { + ridk version + } else { + echo 'ridk is unavailable' + } } - name: Subprocess test run: ruby test_subprocess.rb @@ -87,14 +90,17 @@ jobs: - name: build compiler run: | ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first" - - name: ridk version (mingw) - if: startsWith(matrix.cfg.os, 'windows') + - name: gcc and ridk version (mingw) + if: startsWith(matrix.os, 'windows') run: | $abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ') - if (($abi -ge '2.4') -and $plat.Contains('mingw')) { - ridk version - } else { - echo 'ridk is unavailable' + if ($plat.Contains('mingw')) { + gcc --version + if ($abi -ge '2.4') { + ridk version + } else { + echo 'ridk is unavailable' + } } - name: Subprocess test run: ruby test_subprocess.rb