Skip to content

Commit

Permalink
compile_test: print reject hunks
Browse files Browse the repository at this point in the history
If the patches fail to apply, the CI will print the contents of all .rej
files so you can see which hunks failed.
  • Loading branch information
Redecorating committed Nov 20, 2023
1 parent 7310977 commit e4d9336
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/compile_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit e4d9336

Please sign in to comment.