You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detect self-hosted runners not matching a GitHub-hosted runner image
* And give instructions for that case.
* Get the OS and OS version ourselves since some users set ImageOS incorrectly.
* This partially reverts commit ad1ebae.
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -252,17 +252,16 @@ This action might work with [self-hosted runners](https://docs.github.com/en/act
252
252
if the [Runner Image](https://github.com/actions/runner-images) is very similar to the ones used by GitHub runners. Notably:
253
253
254
254
* Make sure to use the same operating system and version.
255
-
* Set the environment variable `ImageOS` on the runner to the corresponding value on GitHub-hosted runners (e.g. `ubuntu18`/`macos1015`/`win19`). This is necessary to detect the operating system and version.
256
255
* Make sure to use the same version of libssl.
257
256
* Make sure that the operating system has `libyaml-0` and [`libgmp`](https://stackoverflow.com/questions/26555902/ruby-v-dyld-library-not-loaded-usr-local-lib-libgmp-10-dylib) installed
258
257
* The default tool cache directory (`/opt/hostedtoolcache` on Linux, `/Users/runner/hostedtoolcache` on macOS,
259
258
`C:/hostedtoolcache/windows`on Windows) must be writable by the `runner` user.
260
259
This is necessary since the Ruby builds embed the install path when built and cannot be moved around.
261
260
* `/home/runner` must be writable by the `runner` user.
262
261
263
-
In other cases, please use a system Ruby or [install Ruby manually](https://github.com/postmodern/chruby/wiki#installing-rubies) instead.
264
-
265
-
On a self-hosted runner you need to define the `ImageOs` as an evironment variable on the host, you can do this in the `~/actions-runner/.env` file (See [#230](https://github.com/ruby/setup-ruby/issues/230)).
262
+
In other cases, you will need to install Ruby in the runner tool cache as shown by the action when it detects that case
263
+
(run it so it will show you where to install Ruby).
264
+
You could of course also not use this action and e.g. use Ruby from a system package or use a Docker image instead.
0 commit comments