Skip to content

ci: use runner.os instead of matrix.os in platform conditions#3354

Merged
Keith-CY merged 1 commit intodevelopfrom
update-platform-detection-in-ci
May 26, 2025
Merged

ci: use runner.os instead of matrix.os in platform conditions#3354
Keith-CY merged 1 commit intodevelopfrom
update-platform-detection-in-ci

Conversation

@Keith-CY
Copy link
Collaborator

runner.os is more general than matrix.os for platform detection

runner.os is more general than matrix.os for platform detection
Copy link
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 CI workflows to use the runner.os context for platform detection instead of matrix.os, making the OS checks more general and resilient.

  • Replaced all matrix.os conditionals with runner.os in two workflow files
  • Ensured consistent OS string comparisons (Windows, macOS, Linux) across steps

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/package_for_test.yml Swapped matrix.os checks for runner.os in platform-specific steps
.github/workflows/package.yml Swapped matrix.os checks for runner.os in platform-specific steps

@Keith-CY Keith-CY merged commit d514e50 into develop May 26, 2025
24 checks passed
@Keith-CY Keith-CY deleted the update-platform-detection-in-ci branch May 26, 2025 01:26
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