Skip to content

Commit 980d0e8

Browse files
authored
Merge pull request #206 from MSP-Greg/00-ci-windows
Add Windows & macOS to CI, fix Ruby master issue
2 parents a9f5775 + 38cbae5 commit 980d0e8

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ name: build
33
on: [push, pull_request]
44

55
jobs:
6-
release-versions:
7-
name: Build on ruby-${{ matrix.ruby }}
8-
runs-on: ubuntu-latest
6+
MRI:
7+
name: ${{ matrix.os }} ruby-${{ matrix.ruby }}
8+
runs-on: ${{ matrix.os }}
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
ruby: [ '2.5', '2.6', '2.7', '3.0' ]
12+
os: [ubuntu-latest, macos-11, windows-2022]
13+
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1', head]
14+
include:
15+
- { os: windows-2022 , ruby: mswin }
1316
steps:
1417
- uses: actions/checkout@v2
1518
- name: Set up Ruby ${{ matrix.ruby }}
@@ -25,8 +28,8 @@ jobs:
2528
- name: Tests
2629
run: rake test
2730

28-
ruby-head:
29-
name: Build on ruby-head
31+
ruby-head-debug:
32+
name: Build on ruby-head-debug
3033
runs-on: ubuntu-latest
3134
continue-on-error: true
3235
strategy:

lib/numo/narray.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
require "numo/narray.so"
1+
require "numo/narray.#{RUBY_PLATFORM.include?('darwin') ? 'bundle' : 'so'}"
22
require "numo/narray/extra"

0 commit comments

Comments
 (0)