From 9aae66331eeeb726435c9f15ef42c34c4d133319 Mon Sep 17 00:00:00 2001 From: Simon Beaudoin Date: Sat, 18 Oct 2025 23:43:41 -0700 Subject: [PATCH 1/2] Add workflow to trigger a build of the package repo This workflow is an adapted copy of this workflow : https://github.com/qualcomm-linux/pkg-template/blob/main/.github/workflows/to_paste_in_upstream/pkg-build-pr-check.yml With this workflow in position, a PR in the upstream project repo (this one) triggers a build or the sister package repo. The special repo variable PKG_REPO_GITHUB_NAME will need to be set. See visit https://github.com/qualcomm-linux/pkg-template for more info about this whole CI workflow Signed-off-by: Simon Beaudoin --- .github/workflows/pkg-build-pr-check.yml | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pkg-build-pr-check.yml diff --git a/.github/workflows/pkg-build-pr-check.yml b/.github/workflows/pkg-build-pr-check.yml new file mode 100644 index 00000000..b15731d7 --- /dev/null +++ b/.github/workflows/pkg-build-pr-check.yml @@ -0,0 +1,31 @@ + +name: Package Build PR Check +description: | + This workflow will execute when a PR is open against the configured branch. + On top of whatever kind of CI/CD logic happens in this upstream repo, this + workflow will make sure that what is attempted to be merged in the main release + branch won't break the debian package. The variable PKG_REPO_GITHUB_NAME needs to + be set in the repo where this file reside. This variable hold the packaging repo + name on github associated to this upstream repo. What will happen is that the PR + triggering this workflow will go knock on the packaging repo's door and trigger + a full build of the package if it were to include these changes. + +on: + pull_request_target: + branches: [ main, development ] + +permissions: + contents: read + security-events: write + +jobs: + package-build-pr-check: + uses: qualcomm-linux/qcom-build-utils/.github/workflows/qcom-upstream-pr-pkg-build-reusable-workflow.yml@main + with: + qcom-build-utils-ref: main + upstream-repo: ${{github.repository}} + upstream-repo-ref: ${{github.head_ref}} + pkg-repo: ${{vars.PKG_REPO_GITHUB_NAME}} + pr-number: ${{github.event.pull_request.number}} + secrets: + TOKEN: ${{ secrets.DEB_PKG_BOT_CI_TOKEN }} From 914cf34efb88ee5d1f2137d9d1397158caad1c12 Mon Sep 17 00:00:00 2001 From: Simon Beaudoin Date: Mon, 1 Dec 2025 10:36:51 -0800 Subject: [PATCH 2/2] Add concurrency guard and remove security-events write Signed-off-by: Simon Beaudoin --- .github/workflows/pkg-build-pr-check.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pkg-build-pr-check.yml b/.github/workflows/pkg-build-pr-check.yml index b15731d7..f4aa036c 100644 --- a/.github/workflows/pkg-build-pr-check.yml +++ b/.github/workflows/pkg-build-pr-check.yml @@ -16,7 +16,10 @@ on: permissions: contents: read - security-events: write + +concurrency: + group: pr-${{ github.event.pull_request.number }} + cancel-in-progress: true jobs: package-build-pr-check: