Skip to content

CI: Prepare artefacts for sdg linux rpi repo (To be reviewed after release)#3341

Draft
liviutomoiaga wants to merge 2 commits into
rpi-6.12.yfrom
staging/setup-deploy-rpi-binaries-on-top-level-flow
Draft

CI: Prepare artefacts for sdg linux rpi repo (To be reviewed after release)#3341
liviutomoiaga wants to merge 2 commits into
rpi-6.12.yfrom
staging/setup-deploy-rpi-binaries-on-top-level-flow

Conversation

@liviutomoiaga
Copy link
Copy Markdown
Collaborator

Consolidate the separate Kuiper and RPI artifact deployment workflows into a single unified workflow, reducing duplication and simplifying maintenance. This implementation should replace azure-pipelines-rpi.yml from main branch.

PR Description

  • Please replace this comment with a summary of your changes, and add any context
    necessary to understand them. List any dependencies required for this change.
  • To check the checkboxes below, insert a 'x' between square brackets (without
    any space), or simply check them after publishing the PR.
  • If you changes include a breaking change, please specify dependent PRs in the
    description and try to push all related PRs simultaneously.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have compiled my changes, including the documentation
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly
  • I have provided links for the relevant upstream lore

@liviutomoiaga liviutomoiaga requested a review from gastmaier May 26, 2026 08:08
@liviutomoiaga liviutomoiaga force-pushed the staging/setup-deploy-rpi-binaries-on-top-level-flow branch 2 times, most recently from ba02dc3 to 789cc80 Compare May 26, 2026 08:11
Comment thread .github/workflows/top-level.yml Outdated
# Condition: Fork PRs blocked (no secrets access). Push scope handled by workflow trigger.
deploy_rpi_artifacts:
needs: [assert_build]
if: github.repository_owner == 'analogdevicesinc'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if: github.repository_owner == 'analogdevicesinc'
if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' }}

The current format tries to upload for pull requests from forks, too.
For forks prs, github.repository_owner is still analogdevicesinc

|| github.event_name == 'push' is safe because github.repository_owner == 'analogdevicesinc' is already gated on previous runs (the ci/cd never runs for push on forks (waste of resources), only intentional prs).

so, effectively, the rule is

(github.repository_owner == 'analogdevicesinc' && github.event_name == 'push') ||
(github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request')

the should match what you need:
under analogdevicesinc, run on push and pull request, only if the origin owner is analogdevicesinc too

Comment thread .github/workflows/top-level.yml Outdated
adi_bcm*_defconfig-*
dtb-*

# Condition: Fork PRs blocked (no secrets access). Push scope handled by workflow trigger.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment not necessary necessary

@liviutomoiaga liviutomoiaga force-pushed the staging/setup-deploy-rpi-binaries-on-top-level-flow branch from 789cc80 to b19f40b Compare May 26, 2026 08:47
Comment thread azure-pipelines-rpi.yml
- rpi-6.6.y
- rpi-6.12.y
- staging/rpi/*
- rpi/release/*
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gastmaier - should I update top-level.yml with conditional push trigger on staging/rpi/* or rpi/release/* ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@liviutomoiaga liviutomoiaga force-pushed the staging/setup-deploy-rpi-binaries-on-top-level-flow branch from b19f40b to b453999 Compare May 26, 2026 10:02
Copy link
Copy Markdown
Collaborator

@gastmaier gastmaier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I reduced the contents write permission to read

Use deploy-kuiper-artifacts.yml shared action to deploy to sdg-linux
cloudsmith (S3). Reduce contents write permission to read.

Signed-off-by: Liviu Tomoiaga <Liviu.Tomoiaga@analog.com>
@gastmaier gastmaier force-pushed the staging/setup-deploy-rpi-binaries-on-top-level-flow branch from 6db22bc to 6d552fe Compare May 27, 2026 07:42
Reduce the trigger events only for rpi/release/* push or pull-request.
Remove Upload to Cloudsmith step since it will be done on top-level.yml.

Signed-off-by: Liviu Tomoiaga <Liviu.Tomoiaga@analog.com>
@liviutomoiaga liviutomoiaga requested a review from bia1708 May 27, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants