From 463c3a8161c756a091bafff34d5b295036152d41 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 5 Apr 2020 14:46:21 +0200 Subject: [PATCH] Simplify conditions --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e271ba4..0f352e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,7 +38,7 @@ jobs: run: | ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first" - name: gcc and ridk version (mingw) - if: startsWith(matrix.os, 'windows') + if: matrix.os == 'windows' run: | $abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ') if ($plat.Contains('mingw')) { @@ -64,10 +64,10 @@ jobs: - run: bundle exec rake --version - name: which ruby, rake - if: startsWith(matrix.os, 'windows') == false + if: matrix.os != 'windows' run: which -a ruby rake - name: where ruby, rake - if: startsWith(matrix.os, 'windows') + if: matrix.os == 'windows' run: | $ErrorActionPreference = 'Continue' $where = 'ruby', 'rake'