CI: add NXP frdm_rw612 build with WiFi support #303
This file contains hidden or 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
name: "Lint" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
# Fetch depth must be greater than the number of commits included in the push in order to | |
# compare against commit prior to merge. 15 is chosen as a reasonable default for the | |
# upper bound of commits in a single PR. | |
fetch-depth: 15 | |
- name: Install clang-format | |
shell: bash | |
run: pip install clang-format | |
- name: Run linter | |
shell: bash | |
run: | | |
git fetch --no-recurse-submodules | |
if [[ $GITHUB_EVENT_NAME == 'push' ]]; then | |
BASE=${{ github.event.before }} | |
else | |
BASE=origin/$GITHUB_BASE_REF | |
fi | |
git clang-format --verbose --extensions c,h --diff --diffstat $BASE |