Skip to content

Commit 5f1b142

Browse files
authored
Merge pull request #55 from headius/ci_on_windows
Add Windows and MacOS to CI
2 parents 5ab83d6 + 55f78e0 commit 5f1b142

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [ ubuntu-latest ]
14+
os: [ ubuntu-latest, windows-latest, macos-latest ]
1515
ruby: [ jruby-9.4.12.0, jruby-head ]
1616

17-
runs-on: ubuntu-latest
17+
runs-on: ${{ matrix.os }}
1818

1919
steps:
2020
- uses: actions/checkout@v2

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ include $(SUB_IMPLMK)
100100
# Pick conf based on OS. for mingw64, must manually override for now.
101101
ifeq ($(OS),Windows_NT)
102102
CC=gcc
103-
CONF=mingw
103+
CONF=mingw64
104104
else
105105
CONF=unix
106106
endif

spec/launcher_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
require 'tmpdir'
2+
require 'rbconfig'
23
require File.expand_path('../spec_helper.rb', __FILE__)
34
load File.expand_path('../../lib/jruby-launcher.rb', __FILE__)
45

5-
describe "JRuby native launcher", if: /Windows/.match?(ENV_JAVA['os.name']) do
6+
describe "JRuby native launcher", if: /mswin/.match?(RbConfig::CONFIG['host_os']) do
67
it "should run org.jruby.Main" do
78
jruby_launcher_args("").last.should == "org/jruby/Main"
89
end

0 commit comments

Comments
 (0)