ci: Fix github ci build for nuclei openocd #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: pull_request | |
name: Check Code Style (checkpatch) | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
env: | |
DL_DIR: ../downloads | |
BUILD_DIR: ../build | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Checkout Base | |
run: | | |
git fetch origin ${{ github.event.pull_request.base.ref }} | |
echo "The current base for checkpatch is: $(git show FETCH_HEAD --oneline --raw)" | |
- name: Install required packages (apt-get) | |
run: | | |
sudo apt-get update | |
sudo apt-get install patchutils | |
- name: Run checkpatch | |
run: | | |
git diff --patch FETCH_HEAD \ | |
| filterdiff \ | |
-x "a/src/jtag/drivers/libjaylink/*" \ | |
-x "a/tools/git2cl/*" \ | |
-x "a/.github/*" \ | |
| ./tools/scripts/checkpatch.pl --no-signoff - |