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

Upgrade vagrant push to upload OS X and Windows binaries #31

Closed
andrioni opened this issue Sep 9, 2015 · 6 comments
Closed

Upgrade vagrant push to upload OS X and Windows binaries #31

andrioni opened this issue Sep 9, 2015 · 6 comments
Assignees
Milestone

Comments

@andrioni
Copy link
Contributor

andrioni commented Sep 9, 2015

Do you think it'd possible to push OS X binaries, either to bintray or through the GitHub release mechanism? While I do think most users are going to deploy sql-runner on Linux, it's nice to be able to test on OS X without using Vagrant.

@alexanderdean
Copy link
Member

Happy to do that if you can share a bash script for building on OS-X?

@alexanderdean alexanderdean self-assigned this Sep 9, 2015
@alexanderdean alexanderdean added this to the Version 0.2.0 milestone Sep 9, 2015
@andrioni
Copy link
Contributor Author

andrioni commented Sep 9, 2015

Other than #29 (godep go build not working before a go get github.com/snowplow/sql-runner), godep works fine.

@andrioni
Copy link
Contributor Author

andrioni commented Sep 9, 2015

The following works, even though it feels a little bit hackish.

#!/bin/bash
set -e

go get github.com/tools/godep
go get github.com/snowplow/sql-runner || true
$GOPATH/bin/godep go build

@alexanderdean
Copy link
Member

Thanks!

@andrioni
Copy link
Contributor Author

andrioni commented Sep 9, 2015

Also, Go 1.5 makes it really easy to cross-compile, but it launched a few weeks ago.

If you don't mind using Docker, it'd be really easy to run Go 1.5 on a container and build binaries for all platforms.

@andrioni
Copy link
Contributor Author

andrioni commented Sep 9, 2015

Done!
For example, running the following command returns a 64-bit OS X binary on the directory ./dist:
docker run -v $(pwd)/dist:/dist -e GOOS=darwin -e GOARCH=amd64 -t andrioni/sql-runner

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

No branches or pull requests

3 participants