@@ -13,15 +13,9 @@ inputs:
1313 description : " TODO this is needed to install the Easy Compile gem from the GitHub repo. Can be removed "
1414 required : false
1515outputs :
16- latest_supported_ruby_version :
17- description : " The most recent ruby versions (from a list) this gem is compatible with."
18- value : ${{ steps.get_versions.outputs.latest_supported_ruby_version }}
1916 runtime_version_for_compilation :
2017 description : " The ruby version used for compiling fat gems."
2118 value : ${{ steps.get_versions.outputs.runtime_version_for_compilation }}
22- ruby_versions_for_testing :
23- description : " An array of ruby versions selected from a list, compatible with the gem."
24- value : ${{ steps.get_versions.outputs.ruby_versions_for_testing }}
2519
2620runs :
2721 using : " composite"
@@ -34,19 +28,19 @@ runs:
3428 token : ${{ inputs.token }}
3529 - name : Install easy compile # TODO this can be removed once this tool is pusblished on RubyGems
3630 shell : bash
37- run : " rake install --local "
31+ run : " sudo rake install"
3832 working-directory : " tmp"
3933 - name : " Outputs the ruby versions needed for compilation"
40- if : " ${{ inputs.step == 'get_versions ' }}"
34+ if : " ${{ inputs.step == 'compile ' }}"
4135 working-directory : ${{ inputs.working-directory }}
4236 shell : bash
4337 id : get_versions
44- run : easy_compile get_versions
38+ run : easy_compile runtime_version_for_compilation
4539 - name : " Setup Ruby"
4640 if : " ${{ inputs.step == 'compile' }}"
4741 uses : " ruby/setup-ruby@v1"
4842 with :
49- ruby-version : " 3.4.7 "
43+ ruby-version : ${{ steps.get_versions.outputs.runtime_version_for_compilation }}
5044 - name : " Setup Rake Compiler"
5145 if : " ${{ inputs.step == 'compile' }}"
5246 uses : actions/github-script@v8
0 commit comments