setup-ruby icon indicating copy to clipboard operation
setup-ruby copied to clipboard

setup-ruby doesn't work on ubuntu-20.04

Open jwillemsen opened this issue 5 years ago • 9 comments

ubuntu-20.04 is available (see https://github.com/actions/virtual-environments#available-environments), but when using setup-ruby we get ##[error]Version 2.7 not found. I created the PR https://github.com/actions/setup-ruby/pull/69 to demonstrate this, currently ubuntu-latest points to ubuntu-18.04 so this is not detected by the default testing

jwillemsen avatar Jun 09 '20 11:06 jwillemsen

It does work when using 2.7.x as version

jwillemsen avatar Jun 09 '20 12:06 jwillemsen

Looks with the released action this doesn't work yet, see for example https://github.com/RemedyIT/axcioma/pull/49/checks?check_run_id=753730607

jwillemsen avatar Jun 09 '20 12:06 jwillemsen

I've gotten several emails this morning showing your work, not quite sure what your goal is.

Re Ubuntu 20.04 & Ruby, all versions are available when using ruby/setup-ruby

MSP-Greg avatar Jun 09 '20 13:06 MSP-Greg

I wanted to upgrade one of our github actions usage to use 20.04. Our action script uses actions/setup-ruby and this doesn't seem to work with 20.04 correctly

jwillemsen avatar Jun 09 '20 13:06 jwillemsen

I'd suggest to use ruby/setup-ruby which has all versions and 20.04 support since last weekend. ruby/setup-ruby is BTW now used in the Ruby starter workflow.

eregon avatar Jun 09 '20 13:06 eregon

Ok, will try to use ruby/setup-ruby

jwillemsen avatar Jun 09 '20 13:06 jwillemsen

@jwillemsen

Sorry, I wasn't clear (not enough coffee yet). ruby/setup-ruby is used by almost all of the repos within the Ruby org, and many other popular gems. It makes multi-platform CI with Ruby as easy as possible...

MSP-Greg avatar Jun 09 '20 13:06 MSP-Greg

Yes, switching to it right now. Did make a PR for ruby/setup-ruby to test with all virtual environments explicitly to make sure everything works

jwillemsen avatar Jun 09 '20 14:06 jwillemsen

I see that Bundler is not included using ruby-version: 2.5 so I suggest #80

mondeja avatar Dec 02 '20 09:12 mondeja