Skip to content

Commit 428fa10

Browse files
committed
Add test manually downloading the built ruby
1 parent 775a4e4 commit 428fa10

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/direct.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Test manual setup
2+
on: [push]
3+
jobs:
4+
test:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: [ 'ubuntu-16.04', 'ubuntu-18.04', 'macos-latest' ]
9+
ruby: [ 'ruby-2.6.5', 'ruby-2.7.0' ]
10+
runs-on: ${{ matrix.os }}
11+
steps:
12+
- run: echo ::set-env name=HOME::$HOME
13+
- run: mkdir ~/.rubies
14+
- run: wget -O ~/.rubies/${{ matrix.ruby }}-${{ matrix.os }}.tar.gz https://github.com/eregon/ruby-install-builder/releases/download/builds/${{ matrix.ruby }}-${{ matrix.os }}.tar.gz
15+
- run: tar xf ${{ matrix.ruby }}-${{ matrix.os }}.tar.gz
16+
working-directory: ${{ env.HOME }}/.rubies
17+
- run: echo "::add-path::${{ env.HOME }}/.rubies/${{ matrix.ruby }}/bin"
18+
- run: ruby -v
19+
- run: ruby -ropen-uri -e 'puts open("https://rubygems.org/") { |f| f.read(2014) }'

0 commit comments

Comments
 (0)