Skip to content

Commit

Permalink
Merge pull request #545 from MSP-Greg/00-ci-mswin
Browse files Browse the repository at this point in the history
[CI] Add Windows mswin job
  • Loading branch information
hsbt authored Nov 7, 2023
2 parents 94d9c89 + 169bfe9 commit aa2c032
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa2c032

Please sign in to comment.