Skip to content

fix: Remove apple uploads from intel#2645

Merged
noahsmartin merged 1 commit intomasterfrom
addMacos13Matrix
Jul 29, 2025
Merged

fix: Remove apple uploads from intel#2645
noahsmartin merged 1 commit intomasterfrom
addMacos13Matrix

Conversation

@noahsmartin
Copy link
Copy Markdown
Contributor

@noahsmartin noahsmartin commented Jul 22, 2025

Adding a test runner for intel macOS, also fixes the issue with intel macOS and the mobile app command by disabling the iOS features on intel

@noahsmartin noahsmartin force-pushed the addMacos13Matrix branch 3 times, most recently from be7c74e to 54ff1af Compare July 22, 2025 15:37
@noahsmartin noahsmartin marked this pull request as draft July 22, 2025 15:38
@noahsmartin noahsmartin force-pushed the addMacos13Matrix branch 12 times, most recently from af040ed to d886635 Compare July 23, 2025 15:59
Copy link
Copy Markdown
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Left a couple comments, but this is not a full review, as the PR is still marked as draft

Comment on lines +97 to +100

let lib_dir = "/usr/lib/swift";
println!("cargo:rustc-link-arg=-Wl,-rpath");
println!("cargo:rustc-link-arg=-Wl,{lib_dir}");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This would no longer be necessary if we restrict to ARM, correct?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Or wait, this is the crate's build.rs, so I don't think these directives have any effect here

Comment on lines +45 to +115
cross-platform-test:
strategy:
fail-fast: false
matrix:
os: [macos-14, macos-14-large]
feature-args: ['', '-Funstable-mobile-app']
include:
- feature-args: ''
feature-suffix: ''
- feature-args: '-Funstable-mobile-app'
feature-suffix: ' (-Funstable-mobile-app)'

name: Build on macOS 14, Test on macOS 13${{ matrix.feature-suffix }}
runs-on: ${{ matrix.os }}

steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2

- name: Cache Dependencies
uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # 2.8.0

- name: Build on macOS 14
run: cargo build --release --workspace ${{ matrix.feature-args }}

- name: Upload Build Artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
with:
name: sentry-cli-macos14-build${{ matrix.feature-suffix }}-${{ matrix.os }}
path: target/release/sentry-cli
retention-days: 1

cross-platform-test-runner:
needs: cross-platform-test
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-13-xlarge, macos-15-large]
feature-args: ['', '-Funstable-mobile-app']
include:
- os: macos-13
base-os: macos-14-large
- os: macos-13-xlarge
base-os: macos-14
- os: macos-15-large
base-os: macos-14-large
- feature-args: ''
feature-suffix: ''
- feature-args: '-Funstable-mobile-app'
feature-suffix: ' (-Funstable-mobile-app)'

name: Run macOS ${{ matrix.os }} ${{ matrix.feature-suffix }}
runs-on: ${{ matrix.os }}

steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2

- name: Download Build Artifacts
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # 4.3.0
with:
name: sentry-cli-macos14-build${{ matrix.feature-suffix }}-${{ matrix.base-os }}
path: ./bin

- name: Make Binary Executable
run: chmod +x ./bin/sentry-cli

- name: Test Binary Compatibility
run: |
# Ensure the cli runs
./bin/sentry-cli --help
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we will make this feature ARM-specific, we should have test coverage for both the ARM-binary and the x86_64-binary; however, I would prefer that we try to keep it simpler than this (i.e. depending on fewer runner types, and perhaps only testing on the system we build for).

@noahsmartin noahsmartin marked this pull request as ready for review July 24, 2025 21:02
@noahsmartin noahsmartin requested a review from a team as a code owner July 24, 2025 21:02
@noahsmartin noahsmartin changed the title Add macos 13 matrix fix: Add intel macOS tests + fix mobile app on intel Jul 24, 2025
Copy link
Copy Markdown
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Looks good, besides comment about testing. I would be good to approve if we rebase this on #2658 and remove the macos-14-large image

@noahsmartin noahsmartin changed the base branch from master to 07-28-ci_test_and_lint_macos_x86_64 July 28, 2025 19:49
@szokeasaurusrex szokeasaurusrex changed the title fix: Add intel macOS tests + fix mobile app on intel fix: Remove apple uploads from intel Jul 29, 2025
@szokeasaurusrex
Copy link
Copy Markdown
Member

szokeasaurusrex commented Jul 29, 2025

Looks good; however, CI is failing on #2658 (which this PR is depending on), since that PR needs this PR in order to pass. So, we will need to reorder the two PRs to the following:

master <- this PR <- #2658

Would you like to take care of this reordering or shall I?

@noahsmartin noahsmartin changed the base branch from 07-28-ci_test_and_lint_macos_x86_64 to master July 29, 2025 12:10
@noahsmartin noahsmartin merged commit ea97170 into master Jul 29, 2025
27 checks passed
@noahsmartin noahsmartin deleted the addMacos13Matrix branch July 29, 2025 12:14
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