Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 6, 2020
Merged

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

merged 1 commit into from
Dec 6, 2020

Conversation

mumoshu
Copy link
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