From d2b72024f13dec5cef0f4e53ac606304bbec5d31 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 24 Feb 2020 22:09:53 +0100 Subject: [PATCH] Split ruby -v and compiler version * It's not always gcc, can be e.g. clang too --- .github/workflows/test.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbcc2cd..bcd9b3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,14 +29,13 @@ jobs: - uses: ./ with: ruby-version: ${{ matrix.ruby }} - - name: ruby version and gcc + - run: ruby -v + - name: build compiler run: | - ruby --version - ruby -e "puts 'build gcc: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown')[/[^\n]+/]" + ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first" - name: ridk version (mingw) if: matrix.os == 'windows-latest' run: | - # run 'ridk version' $abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ') if (($abi -ge '2.4') -and $plat.Contains('mingw')) { ridk version @@ -70,14 +69,13 @@ jobs: - uses: ./ with: ruby-version: ${{ matrix.cfg.ruby }} - - name: ruby version and gcc + - run: ruby -v + - name: build compiler run: | - ruby --version - ruby -e "puts 'build gcc: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown')[/[^\n]+/]" + ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first" - name: ridk version (mingw) if: matrix.cfg.os == 'windows-latest' run: | - # run 'ridk version' $abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ') if (($abi -ge '2.4') -and $plat.Contains('mingw')) { ridk version