Add cross compile support #203
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
name: gitlint | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
gitlint: | |
name: git lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
path: nrf70-linux-driver | |
fetch-depth: 0 | |
- name: cache-pip | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-doc-pip | |
- name: Info | |
working-directory: nrf70-linux-driver | |
run: | | |
echo "Repository: $GITHUB_REPOSITORY" | |
echo "Workspace: $GITHUB_WORKSPACE" | |
pwd | |
ls -la `pwd` | |
git log --oneline --graph | |
- name: Install python dependencies | |
working-directory: nrf70-linux-driver | |
run: | | |
pip3 install -U pip | |
pip3 install -U setuptools | |
pip3 install -U wheel | |
grep -E "python-magic|junitparser|lxml|gitlint|pylint|pykwalify|yamllint" scripts/requirements-fixed.txt | xargs pip3 install -U | |
- name: Clone Zephyr downstream | |
env: | |
BASE_REF: ${{ github.base_ref }} | |
working-directory: nrf70-linux-driver | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Your Name" | |
git remote -v | |
git log -1 origin/main | |
# Ensure there's no merge commits in the PR | |
[[ "$(git rev-list --merges --count origin/${BASE_REF}..)" == "0" ]] || \ | |
(echo "::error ::Merge commits not allowed, rebase instead";false) | |
git rebase origin/${BASE_REF} | |
# debug | |
git log --pretty=oneline | head -n 10 | |
# Clone downstream Zephyr (no west needed as we only need the scripts) | |
git clone https://github.com/nrfconnect/sdk-zephyr | |
- name: Install and run gitlint | |
working-directory: nrf70-linux-driver | |
run: | | |
pip install gitlint | |
gitlint --commits ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} | |
- name: Run CODEOWNERS test | |
id: codeowners | |
working-directory: nrf70-linux-driver | |
env: | |
BASE_REF: ${{ github.base_ref }} | |
if: contains(github.event.pull_request.user.login, 'dependabot[bot]') != true | |
run: | | |
./scripts/ci/codeowners.py -c origin/${BASE_REF}.. |