Replace macos-release by (parseInt(os.version()) - 9) #1291
Annotations
1 error
Run /./
The current runner (macos-NaN-arm64) 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 head /Users/runner/hostedtoolcache/Ruby/head/arm64
Once that completes successfully, mark it as complete with:
$ touch /Users/runner/hostedtoolcache/Ruby/head/arm64.complete
It is your responsibility to ensure installing Ruby like that is not done in parallel.
|
Loading