Skip to content

fix: packaging onnxruntime for macOS x86-64 - #27968

Open
JellyBrick wants to merge 4 commits into
microsoft:mainfrom
JellyBrick:patch-1
Open

fix: packaging onnxruntime for macOS x86-64#27968
JellyBrick wants to merge 4 commits into
microsoft:mainfrom
JellyBrick:patch-1

Conversation

@JellyBrick

@JellyBrick JellyBrick commented Apr 3, 2026

Copy link
Copy Markdown

@JellyBrick

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@hariharans29

Copy link
Copy Markdown
Member

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 4 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 macOS CI configuration to keep Intel (x86_64) builds running now that macos-13 is deprecated, and restores native Intel runners for the x86_64 CoreML/WebGPU build jobs.

Changes:

  • Switch reusable macOS CI workflow x86_64 runner from macos-13 to macos-15-intel (arm64 remains macos-15).
  • Standardize the reusable workflow’s Xcode selection to version 16 to align with macOS 15 runners.
  • Update mac.yml CoreML and WebGPU matrices to run x86_64 builds on x86_64 machines (instead of arm64 machines targeting x86_64).

Reviewed changes

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

File Description
.github/workflows/macos-ci-build-and-test-workflow.yml Moves x86_64 jobs to macos-15-intel and aligns Xcode selection for macOS 15 images.
.github/workflows/mac.yml Restores native Intel execution for x86_64 CoreML/WebGPU CI jobs by updating the matrix.

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

@JellyBrick
JellyBrick marked this pull request as draft April 3, 2026 19:40
@JellyBrick JellyBrick changed the title fix: Update macOS CI workflow to macos-15-intel for x86_64 fix: packaging onnxruntime for macOS x86-64 Apr 3, 2026
@JellyBrick
JellyBrick marked this pull request as ready for review April 3, 2026 20:32
@hariharans29
hariharans29 requested a review from Copilot April 3, 2026 21:01
@hariharans29

Copy link
Copy Markdown
Member

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 4 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.


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

@skheyfets-asapp

Copy link
Copy Markdown

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 27968 in repo microsoft/onnxruntime

@whardier

Copy link
Copy Markdown

Hi folks.. this might not need to be the responsibility of a community member - perhaps MS should check this out and fix this bug - used the wrong arch type for build.

@sroussey

sroussey commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Looks like conflicts now as branch has become stale

hariharans29 added a commit that referenced this pull request Jul 2, 2026
PR #29502 replicates upstream #27968 which adds onnxruntime-java-osx-x86_64 to run_packaging's CPU platform list. Update jar_packaging_test.py's CPU fixture to create the corresponding artifact directory and libcustom_op_library.dylib, and extend the post-run cleanup assertion so the test verifies the file is consumed from the osx-x86_64 slot (archive_lib=True) like linux-x64 and osx-arm64. GPU fixture is unchanged since GPU's package_definitions still only touches onnxruntime-java-linux-x64. Addresses Copilot review comment on PR #29502.
@0x0bit

0x0bit commented Jul 16, 2026

Copy link
Copy Markdown

Is this issue still being pushed forward?

@hariharans29

hariharans29 commented Jul 16, 2026

Copy link
Copy Markdown
Member

Is this issue still being pushed forward?

A couple of CI pipelines are failing - both on this PR and my own variant of this PR #29502 (which is a superset of this PR). I kicked off Nuget packagaing pipeline for my PR which seems to failthe Nuget packaging pipeline. Not sure if they are related to this PR (probably yes -because all other PRs seem to go through). I ll need to find some time to investigate this.

@JellyBrick

Copy link
Copy Markdown
Author

Not sure if they are related to this PR

This is because some of the test code for macOS in onnxruntime assumes an aarch64 (arm64) architecture. While this issue requires additional fixes, I’m not entirely sure whether it should be addressed within the scope of this PR.

@hariharans29

Copy link
Copy Markdown
Member

Not sure if they are related to this PR

This is because some of the test code for macOS in onnxruntime assumes an aarch64 (arm64) architecture. While this issue requires additional fixes, I’m not entirely sure whether it should be addressed within the scope of this PR.

That is true for the CIs. As you can see from the other PR (#29502), I tried running some packaging pipelines that run as part of another set of pipelines that are run prior to every release. It is failing one of that. I have bought it to the attention of some folks who are more familiar with that.

@hariharans29

Copy link
Copy Markdown
Member

Also my colleagues just pointed out that removal of support for x86_64 Mac for ORT pckages was announced previously:

image

@JellyBrick

Copy link
Copy Markdown
Author

But why? x86_64 is still actively supported on macOS, at least up to macOS 27.

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.

[Build] onnxruntime-node no longer shipping x86-64 since 1.23.x

7 participants