Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
Signed-off-by: ZePan110 <[email protected]>
  • Loading branch information
ZePan110 committed Oct 8, 2024
1 parent 1b86bd0 commit 6b4a0e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/_run-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,21 @@ jobs:
for script in $test_cases; do
echo $script
if echo "$script" | grep -q "on"; then
_service=$(echo $script | cut -d'/' -f3 | cut -d'.' -f1 | awk -F'on_' '{print $2}')
hardware=${_service#*_on_}
hardware=$(echo $script | cut -d'/' -f3 | cut -d'.' -f1 | awk -F'on_' '{print $2}')
run_matrix="${run_matrix}{\"test_case\":\"${script}\",\"hardware\":\"${hardware}\"},"
else
run_matrix="${run_matrix}{\"test_case\":\"${script}\",\"hardware\":\"intel_cpu\"},"
fi
done
echo $run_matrix
run_matrix=$(echo "$run_matrix" | sed 's/,$//')
run_matrix=$run_matrix"]}"
echo "run_matrix=${run_matrix}"
echo "run_matrix=${run_matrix}" >> $GITHUB_OUTPUT
run-test:
needs: [get-test-case]
strategy:
matrix:
include: ${{ fromJSON(needs.get-test-case.outputs.run_matrix) }}
matrix: ${{ fromJSON(needs.get-test-case.outputs.run_matrix) }}
runs-on: ${{ matrix.hardware }}
continue-on-error: true
steps:
Expand Down

0 comments on commit 6b4a0e5

Please sign in to comment.