-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
The environment variable ImageOS must be set (Self hosted runner) #230
Comments
Maybe try Not sure whether (or how) one can define different platforms with self-hosted runners... Can you add a step before the 'ruby/setup-ruby@v1' step and output the ENV variable? EDIT: @eregon is correct (my mistake). Code here (below) parses ImageOS so it matches the yaml Lines 101 to 107 in f20f1ea
|
I think https://github.com/ruby/setup-ruby#using-self-hosted-runners is clear, you need to set ImageOS on the self-hosted runner, otherwise this action has no idea how to find out which OS and OS version you are using. Of course the value must be what the runner is actually using, otherwise it's unsupported (Ruby is prebuilt on a set of OS & versions, on other OS it just doesn't work it would need to be rebuilt). |
env:
ImageOS: ubuntu20 should work though, do you have a log of the failed build, or better a public URL of such a failed build? The env var should be set by the runner ideally, not in the workflow. |
This sounds very simple, if you know what to do, but I honestly have no idea how to do this. Do I define this in the .yml or on the host? Can you give me a tiny pointer @eregon? |
Can you tell me where I define this env variable so the runner picks this up on a self hosted system? |
Thanks for the pointers, I've found this file Changed the content, now it works!
Home this issue will help someone in the future ✨ |
Glad you found it, I actually didn't know the details, I never had time to mess with self-hosted runners yet. Also, maybe this is something that should maybe be automatically set when installing the runner on a machine, and so worth filing an issue to https://github.com/actions/runner? |
I created a PR: #232 |
Self hosted runners support other operating systems. We use enterprise linux here. What do we need to put for the ImageOS variable for OS's other than ubuntu, mac and windows. |
We are trying to use
setup-ruby
on a self hosted runner but we get this error:I tried all kinds of things but I can't get it working, this is our current yml file for our actions.
I see a mention of this issue in the readme, but it does not tell me what to do. Can someone give me a pointer on how to fix this?
Thanks! ✨
The text was updated successfully, but these errors were encountered: