Skip to content

Commit

Permalink
Update cerdalux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
therealdreg committed Jul 19, 2023
1 parent 0fb54db commit 0ac275e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cerdalux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ jobs:
- uses: actions/checkout@v3

- name: Error if exist tab char
run: find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c 'grep --binary -HnP "\x09" $1 && exit 1' _ {} \;

- name: Error if exist trailing chars
run: find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c 'grep --binary -HnP "\x20\x0d" $1 && exit 1' _ {} \; && find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c 'grep --binary -HnP "\x20\x0a" $1 && exit 1' _ {} \;
run: find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c '! grep --binary -HnP "\x09" $1' _ {} + ;

- name: Error if exist trailing chars 0d0a
run: find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c '! grep --binary -HnP "\x20\x0d" $1' _ {} + ;
- name: Error if exist trailing chars 0a
run: find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c '! grep --binary -HnP "\x20\x0a" $1' _ {} + ;

- name: Error if .asm files are not crlf ended
run: find . -iregex '.*\.\(asm\)' -exec sh -c 'echo $1; xxd -p $1; xxd -p $1 | tr -d "\n" | grep -P "(?<!0d)0a" && echo $1 && exit 1' _ {} \;
Expand Down

0 comments on commit 0ac275e

Please sign in to comment.