Skip to content

Commit

Permalink
Merge pull request #663 from deivid-rodriguez/improve_windows_ci
Browse files Browse the repository at this point in the history
Improve Windows CI
  • Loading branch information
deivid-rodriguez committed Apr 12, 2020
2 parents 7edb310 + 8c0595e commit b6cd074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,12 @@ jobs:
with:
ruby-version: ${{ matrix.version }}

- name: Clone patched rb-readline
shell: cmd
run: git clone -q --depth=5 --no-tags --branch=byebug https://github.com/deivid-rodriguez/rb-readline.git C:\rb-readline

- name: Install patched rb-readline
run: |
$env:n_dir = (&ruby.exe -e "puts RbConfig::CONFIG['sitelibdir']" | Out-String).Trim()
Copy-Item -Path C:\rb-readline\lib\readline.rb -Destination $env:n_dir\readline.rb
Copy-Item -Path C:\rb-readline\lib\rbreadline.rb -Destination $env:n_dir\rbreadline.rb
- name: Display environment information
shell: cmd
- name: Patch rb-readline
run: |
echo %PATH%
ruby --version
where ruby
gem --version
where gem
bash --version
where bash
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\readline.rb -Destination $n_dir\readline.rb
Copy-Item -Path C:\rb-readline\lib\rbreadline.rb -Destination $n_dir\rbreadline.rb
- name: Setup dependencies
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ more][Tidelift for enterprise].

## Build Status

Linux ![](https://github.com/deivid-rodriguez/byebug/workflows/build/badge.svg)
Linux ![ubuntu](https://github.com/deivid-rodriguez/byebug/workflows/ubuntu/badge.svg)
Windows [![Vey][vey]][vey_url]

[vey]: https://ci.appveyor.com/api/projects/status/github/deivid-rodriguez/byebug?svg=true
Expand Down

0 comments on commit b6cd074

Please sign in to comment.