From 320c88cf653cb50c23da4bbde562cfd503781015 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Wed, 11 Oct 2023 10:23:23 -0500 Subject: [PATCH 1/2] [CI] add mswin head build --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3074be5f..8e886a98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: - windows-latest ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} include: + - { os: windows-latest , ruby: mswin } # ruby/ruby windows CI - { os: ubuntu-latest , ruby: jruby-9.1 } # Ruby 2.3 - { os: ubuntu-latest , ruby: jruby-9.2 } # Ruby 2.5 - { os: ubuntu-latest , ruby: jruby-9.3 } # Ruby 2.7 From 169bfe951b6e616b6f240395e8a0f1be404c81dd Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Wed, 11 Oct 2023 10:43:34 -0500 Subject: [PATCH 2/2] Rakefile - clean up logging when using Windows --- Rakefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index f126284e..12ffaaea 100644 --- a/Rakefile +++ b/Rakefile @@ -45,8 +45,14 @@ JAVA_CLASSES = [] JRUBY_PARSER_JAR = File.expand_path("lib/json/ext/parser.jar") JRUBY_GENERATOR_JAR = File.expand_path("lib/json/ext/generator.jar") -RAGEL_CODEGEN = %w[rlcodegen rlgen-cd ragel].find(&which) -RAGEL_DOTGEN = %w[rlgen-dot rlgen-cd ragel].find(&which) +if RUBY_PLATFORM =~ /mingw|mswin/ + # cleans up Windows CI output + RAGEL_CODEGEN = %w[ragel].find(&which) + RAGEL_DOTGEN = %w[ragel].find(&which) +else + RAGEL_CODEGEN = %w[rlcodegen rlgen-cd ragel].find(&which) + RAGEL_DOTGEN = %w[rlgen-dot rlgen-cd ragel].find(&which) +end desc "Installing library (pure)" task :install_pure => :version do