From b408784e8d75ae0371ce9eab436de1b272b1355b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sun, 12 Apr 2020 02:22:11 +0200 Subject: [PATCH] Merge all ps lines for patching rb-readline together --- .github/workflows/windows.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 70219ba78..42e2eff55 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -29,12 +29,9 @@ 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 + - 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 $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