We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fca9c16 commit 8ba4de9Copy full SHA for 8ba4de9
1 file changed
.github/workflows/test.yml
@@ -72,6 +72,25 @@ on:
72
- "mi355x-amd_3"
73
74
jobs:
75
+ verify-compatible-runner:
76
+ runs-on: ubuntu-latest
77
+ if: ${{ inputs.runner != '' }}
78
+ steps:
79
+ - name: Verify runner compatible
80
+ shell: python
81
+ run: |
82
+ import re
83
+
84
+ inputs_name_re = re.match(r'^[^-]+-[^-]+-([^-]+)', ${{ inputs.name }})
85
+ if inputs_name_re:
86
+ config_gpu = inputs_name_re.group(1)
87
+ inputs_runner_re = re.match(r'^([^-]+)', ${{ inputs.runner }})
88
+ if inputs_runner_re:
89
+ runner_gpu = inputs_runner_re.group(1)
90
91
+ assert config_gpu == runner_gpu, f"Specified runner '${{ inputs.runner }})' is not compatible with config '${{ inputs.name }}'""
92
93
94
get-jobs:
95
runs-on: ubuntu-latest
96
outputs:
0 commit comments