GITHUB-ACTIONS · Question #12
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?
The correct answer is B. runs-on: [self-hosted, windows, x64]. The runs-on keyword allows you to specify the operating system and other labels for the runner. By specifying self-hosted, windows, and x64, you are targeting a self-hosted Windows runner that matches these criteria, which aligns with the custom configuration of your self-hosted
Question
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?
Options
- Aself-hosted: [windows-x64]
- Bruns-on: [self-hosted, windows, x64]
- Cruns-on: windows-latest
- Dself-hosted: [windows, x64]
How the community answered
(51 responses)- A2% (1)
- B90% (46)
- C2% (1)
- D6% (3)
Explanation
The runs-on keyword allows you to specify the operating system and other labels for the runner. By specifying self-hosted, windows, and x64, you are targeting a self-hosted Windows runner that matches these criteria, which aligns with the custom configuration of your self-hosted runner.
Topics
Community Discussion
No community discussion yet for this question.