You've already forked linux-t2-patches
mirror of
https://github.com/t2linux/linux-t2-patches.git
synced 2026-04-30 13:52:11 -07:00
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:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user