Split ruby -v and compiler version
* It's not always gcc, can be e.g. clang too
This commit is contained in:
@@ -29,14 +29,13 @@ jobs:
|
|||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{ matrix.ruby }}
|
ruby-version: ${{ matrix.ruby }}
|
||||||
- name: ruby version and gcc
|
- run: ruby -v
|
||||||
|
- name: build compiler
|
||||||
run: |
|
run: |
|
||||||
ruby --version
|
ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first"
|
||||||
ruby -e "puts 'build gcc: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown')[/[^\n]+/]"
|
|
||||||
- name: ridk version (mingw)
|
- name: ridk version (mingw)
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
# run 'ridk version'
|
|
||||||
$abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
|
$abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
|
||||||
if (($abi -ge '2.4') -and $plat.Contains('mingw')) {
|
if (($abi -ge '2.4') -and $plat.Contains('mingw')) {
|
||||||
ridk version
|
ridk version
|
||||||
@@ -70,14 +69,13 @@ jobs:
|
|||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{ matrix.cfg.ruby }}
|
ruby-version: ${{ matrix.cfg.ruby }}
|
||||||
- name: ruby version and gcc
|
- run: ruby -v
|
||||||
|
- name: build compiler
|
||||||
run: |
|
run: |
|
||||||
ruby --version
|
ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first"
|
||||||
ruby -e "puts 'build gcc: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown')[/[^\n]+/]"
|
|
||||||
- name: ridk version (mingw)
|
- name: ridk version (mingw)
|
||||||
if: matrix.cfg.os == 'windows-latest'
|
if: matrix.cfg.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
# run 'ridk version'
|
|
||||||
$abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
|
$abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
|
||||||
if (($abi -ge '2.4') -and $plat.Contains('mingw')) {
|
if (($abi -ge '2.4') -and $plat.Contains('mingw')) {
|
||||||
ridk version
|
ridk version
|
||||||
|
|||||||
Reference in New Issue
Block a user