Skip to content

workflows: add zephyr_revision support to Windows builds#10679

Open
tmleman wants to merge 1 commit intothesofproject:mainfrom
tmleman:topic/upstream/pr/gh/workflow/fix/zephyr_main
Open

workflows: add zephyr_revision support to Windows builds#10679
tmleman wants to merge 1 commit intothesofproject:mainfrom
tmleman:topic/upstream/pr/gh/workflow/fix/zephyr_main

Conversation

@tmleman
Copy link
Copy Markdown
Contributor

@tmleman tmleman commented Apr 3, 2026

Fixes the zephyr-main scheduled workflow by ensuring Windows builds use the same Zephyr revision as Linux builds when comparing artifacts.

Commit 4a74239 extracted zmain builds into a separate scheduled workflow and parameterized the Linux build job to support the zephyr_revision input. However, the Windows build job was not updated, causing it to always build against the manifest version while Linux built against Zephyr main. This caused the compare-linux-win job to fail when comparing binaries built from different Zephyr versions.

Changes:

  • Add zephyr_revision to build-windows matrix (mirrors build-linux)
  • Add "select zephyr revision" step for Windows (PowerShell variant)
  • Add zephyr_revision to Windows sparse matrix include section
  • Add "if: always()" to Windows artifact upload to match Linux

Copilot AI review requested due to automatic review settings April 3, 2026 11:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Zephyr GitHub Actions workflow so Windows builds can use the same selectable Zephyr revision as Linux builds, preventing Linux/Windows artifact comparisons from failing due to mismatched Zephyr versions.

Changes:

  • Adds zephyr_revision to the Windows build matrix (mirroring the Linux job).
  • Adds a Windows (PowerShell) “select zephyr revision” step to apply the requested revision prior to building.
  • Ensures Windows artifact upload runs with if: always() to match Linux behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Fixes the zephyr-main scheduled workflow by ensuring Windows builds
use the same Zephyr revision as Linux builds when comparing artifacts.

Commit 4a74239 extracted zmain builds into a separate scheduled
workflow and parameterized the Linux build job to support the
zephyr_revision input. However, the Windows build job was not updated,
causing it to always build against the manifest version while Linux
built against Zephyr main. This caused the compare-linux-win job to
fail when comparing binaries built from different Zephyr versions.

Changes:
- Add zephyr_revision to build-windows matrix (mirrors build-linux)
- Add "select zephyr revision" step for Windows (PowerShell variant)
- Add zephyr_revision to Windows sparse matrix include section
- Add "if: always()" to Windows artifact upload to match Linux

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
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.

3 participants