File tree Expand file tree Collapse file tree 2 files changed +26
-9
lines changed
Expand file tree Collapse file tree 2 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,16 @@ inputs:
1212 token :
1313 description : " TODO this is needed to install the Easy Compile gem from the GitHub repo. Can be removed "
1414 required : false
15+ outputs :
16+ latest_supported_ruby_version :
17+ description : " TODO"
18+ value : ${{ steps.get_versions.outputs.latest_supported_ruby_version }}
19+ runtime_version_for_compilation :
20+ description : " TODO"
21+ value : ${{ steps.get_versions.outputs.runtime_version_for_compilation }}
22+ ruby_versions_for_testing :
23+ description : " TODO"
24+ value : ${{ steps.get_versions.outputs.ruby_versions_for_testing }}
1525
1626runs :
1727 using : " composite"
2636 shell : bash
2737 run : " rake install"
2838 working-directory : " tmp"
39+ - name : " Outputs the ruby versions needed for compilation"
40+ if : " ${{ inputs.step == 'get_versions' }}"
41+ working-directory : ${{ inputs.working-directory }}
42+ shell : bash
43+ id : get_versions
44+ run : easy_compile foo
2945 - name : " Setup Rake Compiler"
3046 if : " ${{ inputs.step == 'compile' }}"
3147 uses : actions/github-script@v8
Original file line number Diff line number Diff line change 66 name : " Get the ruby versions needed to compile"
77 runs-on : ubuntu-latest
88 outputs :
9- latest_supported_ruby_version : ${{ steps.easy_compile .outputs.latest_supported_ruby_version }}
10- runtime_version_for_compilation : ${{ steps.easy_compile .outputs.runtime_version_for_compilation }}
11- ruby_versions_for_testing : ${{ steps.easy_compile .outputs.ruby_versions_for_testing }}
9+ latest_supported_ruby_version : ${{ steps.get_versions .outputs.latest_supported_ruby_version }}
10+ runtime_version_for_compilation : ${{ steps.get_versions .outputs.runtime_version_for_compilation }}
11+ ruby_versions_for_testing : ${{ steps.get_versions .outputs.ruby_versions_for_testing }}
1212 steps :
1313 - name : " Checkout code"
1414 uses : " actions/checkout@v5"
1515 - name : " Setup Ruby"
1616 uses : " ruby/setup-ruby@v1"
1717 with :
1818 ruby-version : " 3.4.7"
19- - name : " Install the gem"
20- run : " rake install"
21- - name : " Outputs what I need"
22- id : easy_compile
23- working-directory : " test/fixtures/dummy_gem"
24- run : easy_compile foo
19+ - name : " Run easy compile"
20+ id : get_versions
21+ uses : " ./.github/actions/easy_compile"
22+ with :
23+ step : " get_versions"
24+ token : ${{ secrets.GITHUB_TOKEN }}
25+ working-directory : " test/fixtures/dummy_gem"
2526 compile :
2627 needs : get_versions
2728 timeout-minutes : 20
You can’t perform that action at this time.
0 commit comments