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
- A. runs-on: [self-hosted, windows, x64]
- B. self-hosted: [windows-x64]
- C. runs-on: windows-latest
- D. self-hosted: [windows, x64]
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.