2023-10-24 13:43:24 +02:00
|
|
|
name: 'Setup RUby'
|
|
|
|
description: 'Setup a Ruby environment ready to run the Mastodon code'
|
|
|
|
inputs:
|
|
|
|
ruby-version:
|
|
|
|
description: The Ruby version to install
|
|
|
|
default: '.ruby-version'
|
|
|
|
additional-system-dependencies:
|
|
|
|
description: 'Additional packages to install'
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
|
|
|
- name: Install system dependencies
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2024-06-05 21:15:39 +02:00
|
|
|
sudo apt-get install -y libicu-dev libidn11-dev libvips42 ${{ inputs.additional-system-dependencies }}
|
2023-10-24 13:43:24 +02:00
|
|
|
|
|
|
|
- name: Set up Ruby
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: ${{ inputs.ruby-version }}
|
|
|
|
bundler-cache: true
|