Skip to content

Commit 069bb3f

Browse files
amdfaapytorchmergebot
authored andcommitted
Gets test-matrix properly
1 parent 03d1e00 commit 069bb3f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/actions/setup-rocm/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,20 @@ runs:
6767
echo "$msg"
6868
exit 1
6969
fi
70-
for ((i = 0; i < ${{ #inputs.test-matrix.include }}; i++ ))
70+
test_matrix="${{ inputs.test-matrix }}"
71+
tests=${test-matrix.include[i]["config"]}
72+
for (( i = 0; i < ${#tests}; i++ ))
7173
do
72-
if [[ ${ "${{ inputs.test-matrix.include[i]["config"] }" } != "default" ]]; then
74+
if [[ ${ ${tests} != "default" ]]; then
7375
if [[ $ngpu -eq 1 ]]; then
7476
echo "Error: only 1 GPU detected, at least 2 GPUs are needed for distributed jobs"
7577
echo "$msg"
7678
exit 1
7779
fi
7880
fi
7981
done
82+
env:
83+
test-matrix:
8084

8185
- name: Runner diskspace health check
8286
uses: ./.github/actions/diskspace-cleanup

0 commit comments

Comments
 (0)