Build workflow for macOS (#36) #1
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
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Copyright (C) 2022, 2024 Analog Devices, Inc. | |
name: checkpatch | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events | |
push: | |
branches: [ "**/**" ] | |
pull_request: | |
branches: [ "adi-main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
checkpatch: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Update the submodules below, doing so here will convert ssh to https | |
submodules: false | |
- name: checkpatch | |
run: | | |
git diff origin/adi-main -- . ':^tcl' ':^catalog-info.yaml' > diff.patch | |
tools/scripts/checkpatch.pl --max-line-length=200 --no-signoff --mailback -v --ignore MACRO_ARG_REUSE --ignore UNNECESSARY_PARENTHESES --ignore IF_0 --ignore IF_1 --ignore CONSTANT_COMPARISON --ignore CAMELCASE diff.patch |