ruby/install 2.0.1
Install Ruby, a dynamic programming language with a focus on simplicity and productivity
Issue Tracker
Parameters
Parameter
Required
Default
Description
ruby-version
Version of Ruby to install
ruby-version-file
File containing version of Ruby to install, commonly .ruby-version
ensure-github-attestations
true
Verify GitHub artifact attestations for the precompiled binary before installing it
README.md
Installs Ruby from the mise precompiled binaries.
Any Ruby version with a precompiled binary available is supported. You'll either need to specify ruby-version or ruby-version-file.
With a .ruby-version file
If your project has a .ruby-version file:
tasks:
- key: ruby
call: ruby/install 2.0.1
with:
ruby-version-file: .ruby-version
filter: [.ruby-version]
Remember to include the filter so that the task will be cached only based on the contents of the .ruby-version file.
Specifying a version
If your project does not have a .ruby-version file, you can specify the version manually in your task:
tasks:
- key: ruby
call: ruby/install 2.0.1
with:
ruby-version: 3.4.10
GitHub attestation verification
By default, the GitHub artifact attestations of the precompiled binary are verified before it is installed.
To skip verification, set ensure-github-attestations to "false":
tasks:
- key: ruby
call: ruby/install 2.0.1
with:
ruby-version: 3.4.10
ensure-github-attestations: "false"