Skip to content

Commit fa8c83e

Browse files
committed
Build Rubinius 4.13
1 parent d2c6372 commit fa8c83e

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/build.yml

+61
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,64 @@ jobs:
185185
asset_path: ruby-${{ matrix.ruby-version }}-${{ matrix.os }}.tar.gz
186186
asset_name: ruby-${{ matrix.ruby-version }}-${{ matrix.os }}.tar.gz
187187
asset_content_type: application/gzip
188+
189+
buildRubinius:
190+
if: true
191+
strategy:
192+
fail-fast: false
193+
matrix:
194+
os: [ ubuntu-16.04, ubuntu-18.04, macos-latest ]
195+
ruby: [ rubinius-4.13 ]
196+
runs-on: ${{ matrix.os }}
197+
steps:
198+
- name: Set tag name
199+
id: info
200+
run: |
201+
tag=builds-newer-openssl
202+
echo "::set-output name=tag::$tag"
203+
- name: Check if already built
204+
run: '! curl -s --head --fail https://github.com/eregon/ruby-install-builder/releases/download/${{ steps.info.outputs.tag }}/${{ matrix.ruby }}-${{ matrix.os }}.tar.gz'
205+
206+
- name: apt-get update on Ubuntu
207+
run: sudo apt-get update
208+
if: startsWith(matrix.os, 'ubuntu')
209+
- run: sudo apt-get install ruby clang llvm
210+
if: startsWith(matrix.os, 'ubuntu')
211+
- run: brew install llvm
212+
if: matrix.os == 'macos-latest'
213+
214+
- run: wget 'http://releases.rubinius.com/${{ matrix.ruby }}.tar.bz2'
215+
- run: tar xf ${{ matrix.ruby }}.tar.bz2
216+
- name: Build Rubinius
217+
run: |
218+
cd ${{ matrix.ruby }}
219+
./configure --prefix=$HOME/.rubies/${{ matrix.ruby }}
220+
make
221+
make install
222+
223+
- name: Install Bundler if needed
224+
run: |
225+
if [ ! -e ~/.rubies/${{ matrix.ruby }}/bin/bundle ]; then
226+
export PATH="$HOME/.rubies/${{ matrix.ruby }}/bin:$PATH"
227+
gem install bundler -v '~> 1' --no-document
228+
fi
229+
230+
- name: Basic test
231+
run: ~/.rubies/${{ matrix.ruby }}/bin/ruby --version
232+
- name: OpenSSL test
233+
run: ~/.rubies/${{ matrix.ruby }}/bin/ruby -ropen-uri -e 'puts open("https://rubygems.org/") { |f| f.read(1024) }'
234+
- name: Bundler version
235+
run: ~/.rubies/${{ matrix.ruby }}/gems/bin/bundle --version
236+
237+
- name: Create archive
238+
run: tar czf ${{ matrix.ruby }}-${{ matrix.os }}.tar.gz -C ~/.rubies ${{ matrix.ruby }}
239+
- name: Upload Built Ruby
240+
uses: actions/[email protected]
241+
env:
242+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
243+
with:
244+
# curl -s 'https://api.github.com/repos/eregon/ruby-install-builder/releases/tags/$TAG' | jq -r .upload_url
245+
upload_url: 'https://uploads.github.com/repos/eregon/ruby-install-builder/releases/22947744/assets{?name,label}'
246+
asset_path: ${{ matrix.ruby }}-${{ matrix.os }}.tar.gz
247+
asset_name: ${{ matrix.ruby }}-${{ matrix.os }}.tar.gz
248+
asset_content_type: application/gzip

0 commit comments

Comments
 (0)