diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-30 20:43:18 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-10-24 17:12:05 +0200 |
commit | 05331f0ef8e9c9fd39e9062e44da3fc6c78563c2 (patch) | |
tree | f5b54992cb7b0be15b53bffb475ffd19fb7dfd7d /.github/workflows | |
parent | f7e4f8cbbf8c5ae8602a77112cb2aacb067fce05 (diff) | |
download | upstream-05331f0ef8e9c9fd39e9062e44da3fc6c78563c2.tar.gz upstream-05331f0ef8e9c9fd39e9062e44da3fc6c78563c2.tar.bz2 upstream-05331f0ef8e9c9fd39e9062e44da3fc6c78563c2.zip |
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 5bafc4352fb543c03389b6237f0e2fe327f328fa)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/kernel.yml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml index 5f18a39c55..3aa46f5cd7 100644 --- a/.github/workflows/kernel.yml +++ b/.github/workflows/kernel.yml @@ -54,10 +54,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 + # On testing non-specific target, skip testing each subtarget if we are testing pr + if [ ${{ github.event_name }} != 'push' ]; then + if echo "$CHANGED_FILES" | grep -v -q target/linux || + echo "$CHANGED_FILES" | grep -q target/linux/generic; then + TARGETS_SUBTARGETS=$TARGETS + fi fi JSON_TARGETS_SUBTARGETS='[' |