CI: kernel: test each subtarget on push events

Test each subtarget on push events to improve testing and to refresh
ccache of each subtarget.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 5bafc4352f)
This commit is contained in:
Christian Marangi 2023-05-30 20:43:18 +02:00
parent f7e4f8cbbf
commit 05331f0ef8
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7

View File

@ -54,10 +54,12 @@ jobs:
TARGETS_SUBTARGETS="$(echo "$ALL_TARGETS" | sort -u -t '/' -k1 | awk '{ print $1 }')" TARGETS_SUBTARGETS="$(echo "$ALL_TARGETS" | sort -u -t '/' -k1 | awk '{ print $1 }')"
TARGETS="$(echo "$ALL_TARGETS" | sort -u -t '/' -k1,1 | awk '{ print $1 }')" TARGETS="$(echo "$ALL_TARGETS" | sort -u -t '/' -k1,1 | awk '{ print $1 }')"
# On testing non-specific target, skip testing each subtarget # On testing non-specific target, skip testing each subtarget if we are testing pr
if echo "$CHANGED_FILES" | grep -v -q target/linux || if [ ${{ github.event_name }} != 'push' ]; then
echo "$CHANGED_FILES" | grep -q target/linux/generic; then if echo "$CHANGED_FILES" | grep -v -q target/linux ||
TARGETS_SUBTARGETS=$TARGETS echo "$CHANGED_FILES" | grep -q target/linux/generic; then
TARGETS_SUBTARGETS=$TARGETS
fi
fi fi
JSON_TARGETS_SUBTARGETS='[' JSON_TARGETS_SUBTARGETS='['