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

Update ruby/setup-ruby action #285

Open
1 task done
dmreslab opened this issue Oct 14, 2024 · 6 comments
Open
1 task done

Update ruby/setup-ruby action #285

dmreslab opened this issue Oct 14, 2024 · 6 comments

Comments

@dmreslab
Copy link

Checks

Link to your website repo

https://github.com/dmreslab/DM-res-lab

Version of Lab Website Template you are using

1.2.2

Description

Hi, I used your templete for my research lab homepage. But today, I edited my lab but it gives me following error. I thought I might mistake conducting something, but I did a revert three weeks ago commit. And it gives me same error. I think it is related to ruby version in the github pages and local codes. What should I do? Please solve the issue.

Thanks,
Sang Ho Park

Run ruby/setup-ruby@v1.172.0
Error: The current runner (ubuntu-24.04-x64) was detected as self-hosted because the platform does not match a GitHub-hosted runner image (or that image is deprecated and no longer supported).
In such a case, you should install Ruby in the $RUNNER_TOOL_CACHE yourself, for example using https://github.com/rbenv/ruby-build
You can take inspiration from this workflow for more details: https://github.com/ruby/ruby-builder/blob/master/.github/workflows/build.yml
$ ruby-build 3.1.4 /opt/hostedtoolcache/Ruby/3.1.4/x64
Once that completes successfully, mark it as complete with:
$ touch /opt/hostedtoolcache/Ruby/3.1.4/x64.complete
It is your responsibility to ensure installing Ruby like that is not done in parallel.

@vincerubinetti
Copy link
Collaborator

I see some discussion related to this here:
ruby/setup-ruby#595

In your .github/workflows/build-site.yaml file, can you try changing the uses: ruby/setup-ruby@v1.172.0 line to v1.196.0 (the latest version of that action).

@dmreslab
Copy link
Author

@vincerubinetti
Thank you so much for your helpful answer! I followed your suggestion to update the ruby/setup-ruby action to version 1.196.0 in my .github/workflows/build-site.yaml file, and it resolved the issue. I really appreciate your quick and effective support.
I'm glad to say that I'll continue using this lab template in the future. It's been very useful for my work, and with your assistance, it's now running smoothly again. Thanks for maintaining such a helpful resource!

@vincerubinetti
Copy link
Collaborator

Glad the fix was simple. Going to reopen this because the change need to make it into the base template as well.

@dmreslab
Copy link
Author

dmreslab commented Oct 15, 2024

@vincerubinetti I am newbie in frontend dev, but I think in docker file should be edited also.
.docker
/Dockerfile
Here, how about edit ruby version from
# start with official ruby docker image as base
FROM ruby:3.1.2

to
# start with official ruby docker image as base
FROM ruby:3.1.4
?

I think it should be edited.

Thanks.

@vincerubinetti
Copy link
Collaborator

Possibly. It depends if the issue is with Ruby itself or just the setup-ruby action. I'm guessing it's the latter. But I'll check if there's any issue with the Ruby docker image.

Regardless though, might as well bump it up to the latest version.

@MJDelas
Copy link

MJDelas commented Oct 15, 2024

This has fixed it for me! Thanks a lot @vincerubinetti

@vincerubinetti vincerubinetti changed the title The current runner (ubuntu-24.04-x64) was detected as self-hosted because the platform does not match a GitHub-hosted runner image (or that image is deprecated and no longer supported). Update ruby/setup-ruby action Oct 28, 2024
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

No branches or pull requests

3 participants