Skip to content

Commit 63f96cb

Browse files
committed
Change CI runner for rolling_binary_testing
1 parent f64eeb5 commit 63f96cb

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/reusable_ici.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,38 @@ on:
3434
default: '.ccache'
3535
required: false
3636
type: string
37+
runner_group:
38+
description: 'Runner for the CI'
39+
default: 'ubuntu-latest'
40+
required: false
41+
type: string
3742

3843
jobs:
44+
decide-runner:
45+
runs-on: ubuntu-latest
46+
outputs:
47+
runner_label: ${{ steps.set-runner.outputs.runner_label }}
48+
runnerGroup: ${{ steps.set-runner.outputs.runnerGroup }}
49+
steps:
50+
- id: set-runner
51+
run: |
52+
if [ -n "${{ inputs.runner_group }}" ]; then
53+
echo "runner_label=group-${{ inputs.runner_group }}" >> $GITHUB_OUTPUT
54+
else
55+
echo "runner_label=ubuntu-latest" >> $GITHUB_OUTPUT
56+
fi
57+
3958
reusable_ici:
4059
name: ${{ inputs.ros_distro }} ${{ inputs.ros_repo }}
41-
runs-on: ubuntu-latest
60+
needs: decide-runner
61+
runs-on: ${{ needs.decide-runner.outputs.runner_label }}
62+
group: ${{ needs.decide-runner.outputs.runnerGroup }}
4263
env:
4364
DOCKER_RUN_OPTS: '-v /var/run/docker.sock:/var/run/docker.sock --network ursim_net'
4465
CCACHE_DIR: ${{ github.workspace }}/${{ inputs.ccache_dir }}
4566
CACHE_PREFIX: ${{ inputs.ros_distro }}-${{ inputs.upstream_workspace }}-${{ inputs.ros_repo }}
4667
steps:
68+
- run: echo "Running on ${{ needs.decide-runner.outputs.runner_label }}"
4769
- name: Checkout ${{ github.ref_name }} since build is not scheduled
4870
if: ${{ github.event_name != 'schedule' }}
4971
uses: actions/checkout@v6

.github/workflows/rolling-binary-testing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
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

0 commit comments

Comments
 (0)