Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Secrets SDK CI to work with MacOS ARM runners #2155

Merged
merged 4 commits into from
May 24, 2024

Conversation

t1m0thyj
Copy link
Member

@t1m0thyj t1m0thyj commented May 24, 2024

What It Does

Applies changes from napi-rs/package-template@299e2a6 so that x64 and ARM binaries for MacOS are built correctly now that macos-latest runner defaults to ARM architecture

How to Test

Review Checklist
I certify that I have:

Additional Comments

Copy link
Member

@traeok traeok left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for looking into this Timothy!

Comment on lines -71 to -76
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
export CC=$(xcrun -f clang);
export CXX=$(xcrun -f clang++);
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
npm run build -- --target aarch64-apple-darwin
Copy link
Member

Choose a reason for hiding this comment

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

Its not convenient that the pipeline broke, but at least we were able to remove these steps from the aarch64 build 😋

Copy link

codecov bot commented May 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.21%. Comparing base (a67482c) to head (82b8ffb).
Report is 2 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #2155   +/-   ##
=======================================
  Coverage   91.21%   91.21%           
=======================================
  Files         628      628           
  Lines       17891    17891           
  Branches     3755     3792   +37     
=======================================
  Hits        16319    16319           
  Misses       1571     1571           
  Partials        1        1           

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

Copy link

sonarcloud bot commented May 24, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@t1m0thyj t1m0thyj merged commit 931a2b8 into next May 24, 2024
46 checks passed
@t1m0thyj t1m0thyj deleted the ci/fix-secrets-sdk-build branch May 24, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

3 participants