3030
3131jobs :
3232 show_runner_specs :
33- runs-on : ${{ inputs.runner_size }}
33+ runs-on : ${{ inputs.runner_size || 'github-ubuntu-latest-m' }}
3434 name : Runner Specifications
3535 steps :
3636 - name : Display runner specs
3737 run : |
38- echo "=== Runner: ${{ inputs.runner_size }} ==="
38+ echo "=== Runner: ${{ inputs.runner_size || 'github-ubuntu-latest-m' }} ==="
3939 echo ""
4040 echo "=== CPU ==="
4141 nproc
5151 lscpu
5252
5353 profile_build :
54- if : inputs.job_to_profile == 'build' || inputs.job_to_profile == 'all_quick'
55- runs-on : ${{ inputs.runner_size }}
54+ if : inputs.job_to_profile == 'build' || inputs.job_to_profile == 'all_quick' || inputs.job_to_profile == ''
55+ runs-on : ${{ inputs.runner_size || 'github-ubuntu-latest-m' }}
5656 name : Profile - Build
5757 steps :
5858 - uses : actions/checkout@v4
9393
9494 echo "=== RESOURCE USAGE SUMMARY ==="
9595 echo ""
96- echo "Runner size: ${{ inputs.runner_size }}"
96+ echo "Runner size: ${{ inputs.runner_size || 'github-ubuntu-latest-m' }}"
9797 echo "Available CPUs: $(nproc)"
9898 echo "Available Memory: $(free -h | awk '/^Mem:/ {print $2}')"
9999 echo ""
@@ -136,12 +136,12 @@ jobs:
136136 if : always()
137137 uses : actions/upload-artifact@v4
138138 with :
139- name : build-metrics-${{ inputs.runner_size }}
139+ name : build-metrics-${{ inputs.runner_size || 'github-ubuntu-latest-m' }}
140140 path : /tmp/metrics/
141141
142142 profile_test_js :
143- if : inputs.job_to_profile == 'test_js' || inputs.job_to_profile == 'all_quick'
144- runs-on : ${{ inputs.runner_size }}
143+ if : inputs.job_to_profile == 'test_js' || inputs.job_to_profile == 'all_quick' || inputs.job_to_profile == ''
144+ runs-on : ${{ inputs.runner_size || 'github-ubuntu-latest-m' }}
145145 name : Profile - JS Tests
146146 steps :
147147 - uses : actions/checkout@v4
@@ -181,7 +181,7 @@ jobs:
181181 kill $(cat /tmp/metrics/pid) 2>/dev/null || true
182182
183183 echo "=== RESOURCE USAGE SUMMARY ==="
184- echo "Runner size: ${{ inputs.runner_size }}"
184+ echo "Runner size: ${{ inputs.runner_size || 'github-ubuntu-latest-m' }}"
185185 echo "Available CPUs: $(nproc)"
186186 echo "Available Memory: $(free -h | awk '/^Mem:/ {print $2}')"
187187
@@ -204,12 +204,12 @@ jobs:
204204 if : always()
205205 uses : actions/upload-artifact@v4
206206 with :
207- name : test-js-metrics-${{ inputs.runner_size }}
207+ name : test-js-metrics-${{ inputs.runner_size || 'github-ubuntu-latest-m' }}
208208 path : /tmp/metrics/
209209
210210 profile_ruling :
211211 if : inputs.job_to_profile == 'ruling'
212- runs-on : ${{ inputs.runner_size }}
212+ runs-on : ${{ inputs.runner_size || 'github-ubuntu-latest-m' }}
213213 name : Profile - Ruling Test
214214 steps :
215215 - uses : actions/checkout@v4
@@ -250,7 +250,7 @@ jobs:
250250 kill $(cat /tmp/metrics/pid) 2>/dev/null || true
251251
252252 echo "=== RESOURCE USAGE SUMMARY ==="
253- echo "Runner size: ${{ inputs.runner_size }}"
253+ echo "Runner size: ${{ inputs.runner_size || 'github-ubuntu-latest-m' }}"
254254 echo "Available CPUs: $(nproc)"
255255 echo "Available Memory: $(free -h | awk '/^Mem:/ {print $2}')"
256256
@@ -273,5 +273,5 @@ jobs:
273273 if : always()
274274 uses : actions/upload-artifact@v4
275275 with :
276- name : ruling-metrics-${{ inputs.runner_size }}
276+ name : ruling-metrics-${{ inputs.runner_size || 'github-ubuntu-latest-m' }}
277277 path : /tmp/metrics/
0 commit comments