Skip to content

runner: Add support for ruby/setup-ruby#224

Merged
mumoshu merged 1 commit intomasterfrom
setup-ruby
Dec 6, 2020
Merged

runner: Add support for ruby/setup-ruby#224
mumoshu merged 1 commit intomasterfrom
setup-ruby

Conversation

@mumoshu
Copy link
Copy Markdown
Collaborator

@mumoshu mumoshu commented Dec 6, 2020

It turned out previous versions of runner images were unable to run actions that require AGENT_TOOLSDIRECTORY or libyaml to exist in the runner environment. One of notable examples of such actions is ruby/setup-ruby.

This change adds the support for those actions, by setting up AGENT_TOOLSDIRECTORY and installing libyaml-dev within runner images.

Note that to use ruby/setup-ruby on the runner, you need to use the code like the below. Setting ImageOs env is especially important. See ruby/setup-ruby#111 for more details.

    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.6
        env:
          ImageOS: ubuntu18

It turned out previous versions of runner images were unable to run actions that require `AGENT_TOOLSDIRECTORY` or `libyaml` to exist in the runner environment. One of notable examples of such actions is [`ruby/setup-ruby`](https://github.com/ruby/setup-ruby).

This change adds the support for those actions, by setting up AGENT_TOOLSDIRECTORY and installing libyaml-dev within runner images.
@mumoshu mumoshu merged commit 85c29a9 into master Dec 6, 2020
@mumoshu mumoshu deleted the setup-ruby branch December 6, 2020 02:53
erikkn pushed a commit to erikkn/actions-runner-controller that referenced this pull request Dec 7, 2020
It turned out previous versions of runner images were unable to run actions that require `AGENT_TOOLSDIRECTORY` or `libyaml` to exist in the runner environment. One of notable examples of such actions is [`ruby/setup-ruby`](https://github.com/ruby/setup-ruby).

This change adds the support for those actions, by setting up AGENT_TOOLSDIRECTORY and installing libyaml-dev within runner images.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant