-
-
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
Faild in ubuntu-24.04 runner #595
Comments
[60b17a8] Actions: Rollback to ubuntu-latest ruby/setup-ruby#595
1.9 fails to build: https://github.com/ruby/ruby-builder/actions/runs/9148390417/job/25150867207 I'll only add the latest releases of JRuby and TruffleRuby for now on 24.04, we can add more later. |
https://github.com/ruby/setup-ruby/releases/tag/v1.177.0 |
Is the double 1.177.0 intentional? https://github.com/ruby/setup-ruby/tags Seems to make Dependabot error |
Ah damn that's what I get from doing a release on a phone. Will fix. |
Hello. I get this exact error on my blog, when trying to deploy to GitHub Pages: see here. It's strange because it works fine on another website of mine with the exact same (default) workflow .yml file, so I have no idea of what is wrong and if it is on my side or not. Here is my repo: my repo any help appreciated. |
#596 was released in https://github.com/ruby/setup-ruby/releases/tag/v1.177.0 Your workflow is using older version https://github.com/0nyr/onyr-website/blob/3171828ebdd19cce6c8251730a7e6e72019e57d2/.github/workflows/jekyll.yml#L37 uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 How about to try updating? For example. uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0 |
@kachick You are a blessing. Many thanks. How can I know where to get this information the next time ? |
I would use |
Guessing your candidates
|
Again, many thanks. Any good repository with such a setup as an example ? |
In my repo lab-website-template, I use a pinned version number. I know I wouldn't have done it without a reason, because I always use latest major (e.g. FYI to users who are not aware... GitHub Actions doesn't do any sem-ver when installing/using a third-party action. That is, if you specify |
GitHub Actions also looks for branches and that's what this action uses so Which you use is up to you. Some people prefer exact versioning with auto bumping from Dependabot for better control. Some people prefer the lower maintenance requirement of |
I think "release" is a more natural name for this workflow as it cuts a release. (I don't usually here people refer to that as "pushing a gem"). In addition, I've updated all dependent actions to the latest versions to try to fix a failure I just got on my last attempt at running it: ``` Run ruby/setup-ruby@cacc9f1 with: working-directory: config/release bundler-cache: true ruby-version: ruby 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.3.1 /opt/hostedtoolcache/Ruby/3.3.1/x64 Once that completes successfully, mark it as complete with: $ touch /opt/hostedtoolcache/Ruby/3.3.1/x64.complete It is your responsibility to ensure installing Ruby like that is not done in parallel. ``` As per ruby/setup-ruby#595, it appears that updating the version of this action will fix the error. While I'm at it I went ahead and updated the others, too.
Ubuntu 24.04 runner has been released.
actions/runner-images#9848
But, attempting to use it resulted in the following errors.
The text was updated successfully, but these errors were encountered: