GitHub Foundations — Question 8

You have exactly one Windows x64 self-hosted runner, and it is configured with custom tools. Which syntax could you use in the workflow to target that runner?

Answer options

Correct answer: A

Explanation

The correct syntax to target a specific self-hosted runner with the given characteristics is 'runs-on: [self-hosted, windows, x64]', which specifies the exact types of runners. Option B is incorrect because it uses an unsupported format, while option C points to a different runner type altogether. Option D is also invalid as it does not specify 'x64' which is required for targeting the correct architecture.