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
Portable mac builds #2463
Conversation
3e5588f
to
a1b90f9
Compare
This reverts commit 2892fb1.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
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.