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

Portable mac builds #2463

Merged
merged 8 commits into from May 17, 2019
Merged

Portable mac builds #2463

merged 8 commits into from May 17, 2019

Conversation

bkase
Copy link
Member

@bkase bkase commented May 16, 2019

Portable mac builds across same version or newer of your Xcode tools.

make macos-dist creates a _build/dist.zip that can be sent to other macOS machines and correctly execute coda.exe even in the presence of older CPUs.

RocksDB fortunately included a PORTABLE option in its makefile, so I've enabled that while also turning on sse4.2 which is available for over 10 years.

Libsnark changes were handled in o1-labs/snarky#252 .

scripts/macos-dist.sh is the main workhorse for correcting dylib loading.

Tested by building dist builds locally and pushing them to an s3 bucket and pulling from CircleCI machines. I included the test script I was using scripts/get-and-run-dist-coda.sh for future potential debugging. However, there is currently no CI checking that the dist builds remain in working order nor is there any job for creating such dist builds. Perhaps, this can be tackled when we re-enable the build-macos job.

@bkase bkase changed the title [DO NOT MERGE] See if ci can run our "portable" build Portable mac builds across same version or newer of your Xcode tools May 17, 2019
@bkase bkase changed the title Portable mac builds across same version or newer of your Xcode tools Portable mac builds May 17, 2019
@bkase bkase force-pushed the test-dist-ci branch 4 times, most recently from 3e5588f to a1b90f9 Compare May 17, 2019 02:11
@bkase bkase requested a review from jkrauska May 17, 2019 18:21
Copy link
Contributor

@jkrauska jkrauska left a comment

Choose a reason for hiding this comment

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

os-dist


#
# ONLY USED FOR DEBUGGING
# Use this script to verify that dist builds build on other machines
Copy link
Member

Choose a reason for hiding this comment

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

second build should be "work"

DIST_ZIP=""
BUCKET=""

curl "https://s3-us-west-2.amazonaws.com/$BUCKET/$DIST_ZIP" > "$DIST_ZIP"
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to hardcode the region name? Also, isn't this URL scheme deprecated?

@bkase bkase added the ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR label May 17, 2019
@mergify mergify bot merged commit ded5d84 into master May 17, 2019
@mergify mergify bot deleted the test-dist-ci branch May 17, 2019 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants