-
-
Notifications
You must be signed in to change notification settings - Fork 329
48 lines (35 loc) · 1019 Bytes
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: windows
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
version: [2.5.8, 2.6.6, 2.7.2, head]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v1
with:
path: .bundle
key: gems-${{ hashFiles('**/Gemfile.lock') }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.version }}
- name: Patch rb-readline
run: |
git clone -q --depth=5 --no-tags --branch=byebug https://github.com/deivid-rodriguez/rb-readline.git C:\rb-readline
$n_dir = $(ruby -e "print RbConfig::CONFIG['sitelibdir']")
Copy-Item -Path C:\rb-readline\lib\* -Destination $n_dir -Recurse
- name: Setup dependencies
shell: bash
run: bin/setup.sh
- name: Run tests
run: ruby bin/rake
continue-on-error: ${{ matrix.version == 'head' }}
timeout-minutes: 15