From 5aa6d3b5dfd823ccd670f5f5440ea97186d6bc39 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 9 Apr 2025 18:39:43 +0200 Subject: [PATCH] ci: add a checkmake workflow lint the Makefile in the CI This is to prevent PRs from introducing errors in the Makefile Signed-off-by: Michael Adam --- .github/workflows/checkmake.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/checkmake.yaml diff --git a/.github/workflows/checkmake.yaml b/.github/workflows/checkmake.yaml new file mode 100644 index 000000000..a5b9078ff --- /dev/null +++ b/.github/workflows/checkmake.yaml @@ -0,0 +1,26 @@ +name: CheckMake +on: + pull_request: + branches: + - master + - release-* + +# cancel the in-progress workflow when PR is refreshed. +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + checkmake: + name: CheckMake + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Run CheckMake + uses: Uno-Takashi/checkmake-action@v2 + with: + Makefile: Makefile + debug: true