Skip to content

Commit 8e71fbb

Browse files
committed
CI: Add Windows
1 parent 322ed14 commit 8e71fbb

File tree

2 files changed

+75
-3
lines changed

2 files changed

+75
-3
lines changed

Diff for: .github/workflows/ubuntu.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
name: CI
1+
name: CI on Ubuntu
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
612

713
jobs:
814
test:

Diff for: .github/workflows/windows.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI on Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
13+
jobs:
14+
test:
15+
name: Test
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- windows-latest
23+
ruby:
24+
- mswin
25+
- mingw
26+
- 2.7
27+
- 2.6
28+
- 2.5
29+
- 2.4
30+
- 2.3
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
with:
35+
fetch-depth: 1
36+
37+
- uses: ruby/setup-ruby@v1
38+
with:
39+
ruby-version: ${{ matrix.ruby }}
40+
41+
- name: Install requirements on vcpkg
42+
run: |
43+
vcpkg install zeromq:x64-windows
44+
vcpkg install czmq:x64-windows
45+
vcpkg install libffi:x64-windows
46+
47+
- run: pip3 install -r ci/requirements.txt
48+
49+
- run: gem install bundler
50+
51+
- run: bundle install --jobs 4 --retry 3
52+
53+
- name: Run tests
54+
env:
55+
PYTHON: python3
56+
ADAPTERS: cztop ffi-rzmq pyzmq
57+
run: |
58+
for adapter in $ADAPTERS; do
59+
export IRUBY_TEST_SESSION_ADAPTER_NAME=$adapter
60+
bundle exec rake test TESTOPTS=-v
61+
done
62+
shell: bash
63+
64+
- run: rake build
65+
66+
- run: gem install pkg/*.gem

0 commit comments

Comments
 (0)