compile_test: print reject hunks

If the patches fail to apply, the CI will print the contents of all .rej
files so you can see which hunks failed.
This commit is contained in:
Orlando Chamberlain
2023-11-20 12:32:36 +11:00
parent 73109774e7
commit e4d9336a1e
+7
View File
@@ -35,6 +35,7 @@ jobs:
scripts/checkpatch.pl --no-signoff --terse --no-summary \
$(echo ../*.patch | tr " " "\n" | grep -v -e "apple-bce" -e asahi -e applesmc -e bcm5974 ) || true
- name: Apply Patches
id: apply-patches
run: |
source ./version
cd linux-$KVER
@@ -43,6 +44,12 @@ jobs:
echo "Applying patch $patch..."
patch -Np1 < $patch
done
- name: Print reject hunks
run: |
source ./version
cd linux-$KVER
cat $(find . -type f -name '*.rej') /dev/null
if: always() && (steps.apply-patches.outcome == 'failure')
- name: Setting Config
run: |