CICD-211 · GPU-enabled runners
Encyclopedia · Runner administration and execution infrastructure · All snippets
Previous · CICD-210 · Next · CICD-212
1. Where it fits
- Placement .github/workflows/gpu-check.yml job fragment.
- Prerequisites lab host, trusted repositories, installed act_runner or GitHub runner when named.
- Platforms github-actions.
2. Copy the snippet
yaml
runs-on: [self-hosted, linux, x64, gpu]
steps:
- name: Check GPU visibility
run: nvidia-smi --query-gpu=name,memory.total --format=csv3. How it works
The scheduler selects a runner by this label or group. Verify the executor actually provides the required runtime.
4. Verify the result
Label a dedicated trusted GPU runner and expect a physical device with memory reported in MiB.
Validation syntax-validated (YAML parse). Status definitions.