nerdexam
GitHub

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

Configure and manage self-hosted runners

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)
  • A
    2% (1)
  • B
    90% (46)
  • C
    2% (1)
  • D
    6% (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

#self-hosted runners#runs-on syntax#runner labels#workflow YAML

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice