Skip to content

CICD-013 · Select an Ubuntu runner ​

Encyclopedia · Jobs, steps and runner selection · All snippets

Previous · CICD-012 · Next · CICD-014

1. Where it fits ​

  • Placement .github/workflows/ci.yml, inside the relevant job.
  • Prerequisites workflow containing the named example jobs or steps.
  • Platforms github-actions, gitea-actions.

2. Copy the snippet ​

yaml
runs-on: ubuntu-latest

3. How it works ​

runs-on selects a runner with a matching label. In Gitea the label is a mapping to a configured executor, so check the runner rather than inferring its toolchain from the name.

4. Verify the result ​

Confirm the queue finds the configured label. A Gitea label maps to its configured executor.

Validation syntax-validated (YAML parse). Status definitions.