File tree 1 file changed +5
-7
lines changed
.github/actions/setup-rocm 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,10 @@ runs:
67
67
echo "$msg"
68
68
exit 1
69
69
fi
70
- test_matrix="${{ inputs.test-matrix }}"
71
- tests=${test-matrix.include[i]["config"]}
72
- for (( i = 0; i < ${#tests}; i++ ))
73
- do
74
- if [[ ${ ${tests} != "default" ]]; then
70
+ configs=$(echo "$test_matrix" | jq -c '.include[]')
71
+ echo "$configs" | while IFS= read -r config; do
72
+ test=$(echo "$config" | jq -r '.config')
73
+ if [[ "${test}"" != "default" ]]; then
75
74
if [[ $ngpu -eq 1 ]]; then
76
75
echo "Error: only 1 GPU detected, at least 2 GPUs are needed for distributed jobs"
77
76
echo "$msg"
80
79
fi
81
80
done
82
81
env :
83
- test-matrix :
84
-
82
+ test_matrix : ${{ inputs.test-matrix }}
85
83
- name : Runner diskspace health check
86
84
uses : ./.github/actions/diskspace-cleanup
87
85
if : always()
You can’t perform that action at this time.
0 commit comments