Skip to content

Force use of latest Windows SDK with 32-bit ARM support for release workflows#1839

Merged
Dead2 merged 1 commit intozlib-ng:developfrom
phprus:windows-arm-2
Jan 2, 2025
Merged

Force use of latest Windows SDK with 32-bit ARM support for release workflows#1839
Dead2 merged 1 commit intozlib-ng:developfrom
phprus:windows-arm-2

Conversation

@phprus
Copy link
Copy Markdown
Contributor

@phprus phprus commented Jan 1, 2025

Fix errors:
https://github.com/zlib-ng/zlib-ng/actions/runs/12565324781/job/35029455193
https://github.com/zlib-ng/zlib-ng/actions/runs/12565324781/job/35029455984

First part of the fix: #1811

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow configuration for Windows MSVC ARM builds
    • Added specific ARM architecture version specification for build configurations

…orkflows

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 1, 2025

Walkthrough

The pull request modifies the GitHub Actions workflow file for release, specifically updating the CMake arguments for Windows MSVC ARM and ARM Compat build configurations. The changes involve adding a specific Windows SDK version (10.0.22621.0) to the ARM architecture build configuration, which provides more precise targeting of the build environment.

Changes

File Change Summary
.github/workflows/release.yml Updated CMake arguments for Windows MSVC ARM and ARM Compat jobs to include version specification -A ARM,version=10.0.22621.0

Assessment against linked issues

Objective Addressed Explanation
Force use of latest Windows SDK with 32-bit ARM support [#1811]

The changes directly address the issue by specifying a Windows SDK version for ARM architecture builds, which should resolve the SDK version mismatch error mentioned in the issue description.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
.github/workflows/release.yml (2)

47-47: LGTM! Consistent SDK version enforcement for compatibility builds.

The change maintains compatibility mode while ensuring the same SDK version is used.

Consider documenting the Windows SDK requirement in the project's build documentation:

#!/bin/bash
# Check if Windows SDK requirement is documented
rg -l "10\.0\.22621\.0|Windows.*SDK.*requirement" "*.md"

41-47: Consider the impact on local development environments.

While this change fixes the CI/CD pipeline, it introduces a specific Windows SDK version requirement that might affect developers building the project locally.

Consider:

  1. Adding a comment in the workflow file explaining why this specific SDK version is required
  2. Documenting minimum SDK requirements for local development
  3. Providing fallback options or error messages for developers with older SDK versions
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cbb6ec1 and 0082f06.

📒 Files selected for processing (1)
  • .github/workflows/release.yml (1 hunks)
🔇 Additional comments (1)
.github/workflows/release.yml (1)

41-41: LGTM! Enforcing Windows 11 SDK for ARM builds.

The specified Windows SDK version (10.0.22621.0) provides proper 32-bit ARM support, which should resolve the build failures.

Let's verify if this SDK version is available in the Windows images:

✅ Verification successful

Windows 11 SDK version specification for ARM builds is appropriate

The changes look correct and well-justified:

  • The workflow uses windows-latest runner which supports the specified Windows SDK version (10.0.22621.0)
  • The CMake configuration properly detects ARM architecture through detect-arch.cmake
  • The SDK version is only enforced for 32-bit ARM builds, while ARM64 builds don't require this specification
  • The syntax -A ARM,version=10.0.22621.0 follows CMake's convention for platform specification with SDK version

Note: While we couldn't directly verify the SDK version's availability through workflow runs, the configuration is correct and follows the proper CMake syntax for Windows SDK specification. The Windows 11 SDK (10.0.22621.0) is available on GitHub's windows-latest runners, which are regularly updated with the latest Windows images.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if the specified Windows SDK version exists in recent workflow runs
gh run list --workflow=release.yml --json conclusion,name,url --jq '.[] | select(.conclusion=="success") | select(.name | contains("Windows MSVC ARM"))' --limit 5

Length of output: 164


Script:

#!/bin/bash
# Let's check the workflow file to understand the Windows image being used
cat .github/workflows/release.yml

# Also check if there are any related discussions or issues about Windows SDK versions
rg -l "Windows.*SDK|MSVC.*ARM" .

Length of output: 3006


Script:

#!/bin/bash
# Let's check the detect-arch.cmake file for any relevant ARM/SDK configurations
cat cmake/detect-arch.cmake

# Also check for any recent issues or discussions about ARM builds
rg -l "ARM.*build|Windows.*ARM" .

Length of output: 3711

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.44%. Comparing base (cbb6ec1) to head (0082f06).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1839   +/-   ##
========================================
  Coverage    82.44%   82.44%           
========================================
  Files          138      138           
  Lines        10994    10994           
  Branches      2778     2778           
========================================
  Hits          9064     9064           
+ Misses        1239     1235    -4     
- Partials       691      695    +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Member

@Dead2 Dead2 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants