aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-02-19 23:35:42 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-03-22 00:36:33 +0100
commit0c2b591b845640a733b5ead84970918e9240ebd5 (patch)
tree69db00ab0d5891761d53dfbcf0dc1ec085d9ac42
parent68883278ab2973f6df226e023cabd3ab8353289b (diff)
downloadupstream-0c2b591b845640a733b5ead84970918e9240ebd5.tar.gz
upstream-0c2b591b845640a733b5ead84970918e9240ebd5.tar.bz2
upstream-0c2b591b845640a733b5ead84970918e9240ebd5.zip
CI: kernel: skip subtarget test on non-specific target test
Reduce testing time by skipping subtarget test on non-specific target test. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--.github/workflows/kernel.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml
index 6a94e79779..a25829a4c0 100644
--- a/.github/workflows/kernel.yml
+++ b/.github/workflows/kernel.yml
@@ -52,6 +52,12 @@ jobs:
TARGETS_SUBTARGETS="$(echo "$ALL_TARGETS" | sort -u -t '/' -k1 | awk '{ print $1 }')"
TARGETS="$(echo "$ALL_TARGETS" | sort -u -t '/' -k1,1 | awk '{ print $1 }')"
+ # On testing non-specific target, skip testing each subtarget
+ if echo "$CHANGED_FILES" | grep -v -q target/linux ||
+ echo "$CHANGED_FILES" | grep -q target/linux/generic; then
+ TARGETS_SUBTARGETS=$TARGETS
+ fi
+
JSON_TARGETS_SUBTARGETS='['
FIRST=1
for TARGET in $TARGETS_SUBTARGETS; do