File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 3636 type : string
3737
3838jobs :
39+ decide-runner :
40+ runs-on : ubuntu-latest
41+ outputs :
42+ runner_label : ${{ steps.set-runner.outputs.runner_label }}
43+ steps :
44+ - id : set-runner
45+ run : |
46+ if [ -n "${{ inputs.runner_group }}" ]; then
47+ echo "runner_label=group-${{ inputs.runner_group }}" >> $GITHUB_OUTPUT
48+ else
49+ echo "runner_label=ubuntu-latest" >> $GITHUB_OUTPUT
50+ fi
51+
3952 reusable_ici :
4053 name : ${{ inputs.ros_distro }} ${{ inputs.ros_repo }}
41- runs-on : ubuntu-latest
54+ needs : decide-runner
55+ runs-on : ${{ needs.decide-runner.outputs.runner_label }}
4256 env :
4357 DOCKER_RUN_OPTS : ' -v /var/run/docker.sock:/var/run/docker.sock --network ursim_net'
4458 CCACHE_DIR : ${{ github.workspace }}/${{ inputs.ccache_dir }}
4559 CACHE_PREFIX : ${{ inputs.ros_distro }}-${{ inputs.upstream_workspace }}-${{ inputs.ros_repo }}
4660 steps :
61+ - run : echo "Running on ${{ needs.decide-runner.outputs.runner_label }}"
4762 - name : Checkout ${{ github.ref_name }} since build is not scheduled
4863 if : ${{ github.event_name != 'schedule' }}
4964 uses : actions/checkout@v6
Original file line number Diff line number Diff line change 1515 rolling_binary_testing :
1616 uses : ./.github/workflows/reusable_ici.yml
1717 with :
18+ runner_group : ros_driver_runner_group
1819 ros_distro : rolling
1920 ros_repo : testing
2021 ref_for_scheduled_build : main
You can’t perform that action at this time.
0 commit comments