You have a self-hosted runner with custom labels 'gpu' and 'production'. Which runs-on value correctly targets this runner?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Self-hosted runners are targeted by a list of required labels — all labels in the list must match a single runner.
Full explanation below image
Full Explanation
'runs-on:' accepts either a single string or an array of labels. For self-hosted runners, 'self-hosted' must be included plus any custom labels. When an array is provided, GitHub finds a runner that has ALL listed labels assigned. 'self-hosted gpu production' as a space-separated string is not valid YAML for multiple labels. 'runs-on: labels:' is not valid YAML structure. 'runner:' is not a valid workflow key. Built-in labels include 'self-hosted', 'linux', 'windows', 'macos', 'x64', 'arm64'.