GH-200 · Question #88
As a developer, one of your workflows will require XCode version 11.2 hosted on macOS Catalina (i.e., v10.15). You've already created and configured a self-hosted runner to conform to those requiremen
The correct answer is C. Create custom runner labels for macos-10.15 and xcode-11.2. E. In the workflow, specify: F. Assign the custom labels to the self-hosted runner.. [C, F] Using custom labels to route jobs You can create custom labels and assign them to your self-hosted runners at any time. Custom labels let you send jobs to particular types of self-hosted runners, based on how they're labeled. [E] Using default labels to route jobs A self-h
Question
As a developer, one of your workflows will require XCode version 11.2 hosted on macOS Catalina (i.e., v10.15). You’ve already created and configured a self-hosted runner to conform to those requirements and registered it with your organization. What else should you do to ensure that the workflow accesses the correct runner instance? (Each answer presents a complete solution. Choose three.)
Options
- AAdd your runner to the appropriate runner groups.
- BIn the workflow, specify:
- CCreate custom runner labels for macos-10.15 and xcode-11.2.
- DCreate runner groups named macos-10.15 and xcode-11.2.
- EIn the workflow, specify:
- FAssign the custom labels to the self-hosted runner.
How the community answered
(41 responses)- A7% (3)
- B12% (5)
- C78% (32)
- D2% (1)
Explanation
[C, F] Using custom labels to route jobs You can create custom labels and assign them to your self-hosted runners at any time. Custom labels let you send jobs to particular types of self-hosted runners, based on how they're labeled. [E] Using default labels to route jobs A self-hosted runner automatically receives certain labels when it is added to GitHub Actions. These are used to indicate its operating system and hardware platform: self-hosted: Default label applied to self-hosted runners. linux, windows, or macOS: Applied depending on operating system. x64, ARM, or ARM64: Applied depending on hardware architecture. You can use your workflow's YAML to send jobs to a combination of these labels. In this example, a self-hosted runner that matches all three labels will be eligible to run the job: runs-on: [self-hosted, linux, ARM64] self-hosted - Run this job on a self-hosted runner. linux - Only use a Linux-based runner. ARM64 - Only use a runner based on ARM64 hardware. https://docs.github.com/en/actions/how-tos/manage-runners/self-hosted-runners/use-in-a-
Topics
Community Discussion
No community discussion yet for this question.