Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Windows CI #663

Merged
merged 6 commits into from Apr 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 5 additions & 22 deletions .github/workflows/windows.yml
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
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