Enhance CI hardware list detect (#1077)

Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
chen, suyue
2024-11-07 09:38:19 +08:00
committed by GitHub
parent 944ae47948
commit 2de7c0ba89
2 changed files with 5 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ name: Nightly build/publish latest docker images
on:
schedule:
- cron: "30 1 * * *"
- cron: "30 13 * * *" # UTC time
workflow_dispatch:
env:

View File

@@ -9,12 +9,15 @@ set -e
changed_files=$changed_files
test_mode=$test_mode
run_matrix="{\"include\":["
hardware_list="xeon gaudi" # current support hardware list
examples=$(printf '%s\n' "${changed_files[@]}" | grep '/' | cut -d'/' -f1 | sort -u)
for example in ${examples}; do
cd $WORKSPACE/$example
if [[ ! $(find . -type f | grep ${test_mode}) ]]; then continue; fi
cd tests
ls -l
hardware_list=$(find . -type f -name "test_compose*_on_*.sh" | cut -d/ -f2 | cut -d. -f1 | awk -F'_on_' '{print $2}'| sort -u)
echo "Test supported hardware list = ${hardware_list}"
run_hardware=""
if [[ $(printf '%s\n' "${changed_files[@]}" | grep ${example} | cut -d'/' -f2 | grep -E '*.py|Dockerfile*|ui|docker_image_build' ) ]]; then