mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix checkpatch in CI
This commit is contained in:
15
.github/workflows/checkpatch.yml
vendored
15
.github/workflows/checkpatch.yml
vendored
@@ -5,13 +5,20 @@ jobs:
|
|||||||
checkpatch:
|
checkpatch:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Set up repo
|
||||||
|
run: |
|
||||||
|
git clone -b "${{ github.event.pull_request.head.ref }}" "${{ github.event.pull_request.head.repo.clone_url }}" rgbds
|
||||||
|
cd rgbds
|
||||||
|
git remote add upstream "${{ github.event.pull_request.base.repo.clone_url }}"
|
||||||
|
git fetch upstream
|
||||||
- name: Set up checkpatch
|
- name: Set up checkpatch
|
||||||
|
working-directory: rgbds
|
||||||
run: |
|
run: |
|
||||||
wget 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl'
|
wget 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl'
|
||||||
chmod +x checkpatch.pl
|
chmod +x checkpatch.pl
|
||||||
touch const_structs.checkpatch
|
wget 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/const_structs.checkpatch'
|
||||||
touch spelling.txt
|
wget 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt'
|
||||||
- name: Checkpatch
|
- name: Checkpatch
|
||||||
|
working-directory: rgbds
|
||||||
run: |
|
run: |
|
||||||
make checkpatch CHECKPATCH=./checkpatch.pl BASE_REF=${{ github.base_ref }} Q=
|
make checkpatch CHECKPATCH=./checkpatch.pl "BASE_REF=${{ github.event.pull_request.base.sha }}" Q=
|
||||||
|
|||||||
Reference in New Issue
Block a user