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

Automatic build #3

Open
ncannasse opened this issue May 13, 2017 · 7 comments
Open

Automatic build #3

ncannasse opened this issue May 13, 2017 · 7 comments
Assignees

Comments

@ncannasse
Copy link
Member

ncannasse commented May 13, 2017

It would be nice if for each commit on ocamhaxe we run that on a windows build machine to create a distribution.

What's required is:
a) clone ocamhaxe
b) run haxe/Build.exe
c) zip the resulting ocamhaxe directory
d) upload it somewhere it can be accessed publicly

Could you help @andyli ?

@andyli
Copy link
Member

andyli commented May 13, 2017

No problem. Will look into it :)

@andyli andyli self-assigned this May 13, 2017
@andyli
Copy link
Member

andyli commented May 18, 2017

Currently my understanding is: To build the ocamhaxe zip, one has to have an existing cygwin installation, with all the required cygwin packages installed. haxe/Build.exe will then copy the cygwin things and fdopen things and put them into a folder, finally zip it.

I wonder shouldn't we reuse the cygwin setup.exe installer for setting up the cygwin environment (instead of manually copying files). I'm thinking, ideally, we can merge Config.exe and Build.exe, to have a single program (e.g. OcamHaxe.exe), that accept a single argument which is the path to a cygwin installation. If the path exist, it will use cygwin's setup.exe and fdopen's installer script to set things up. If the path doesn't exist, again, it will use cygwin's setup.exe to create a cygwin environment, then run fdopen's installer.

In this case, we don't have to prepackage the cygwin/opam stuff and users will be able to get the latest version of things when they run the OcamHaxe.exe. We just need to publish the OcamHaxe.exe.

@ncannasse
Copy link
Member Author

ncannasse commented May 18, 2017 via email

@andyli
Copy link
Member

andyli commented May 18, 2017

I agree on the case when building from scratch (no existing cygwin). But when there is an existing cygwin, copying files to there instead of using cygwin's setup.exe results in the exact potential of breakage. e.g. When the user has a more updated lib but we copied an older version there.

@andyli
Copy link
Member

andyli commented May 18, 2017

BTW, a small detail: fdopen's installer by default do not compile OCaml, it just downloads a pre-compiled one. It's the opam packages (e.g. sedlex) have to be compiled.

@ncannasse
Copy link
Member Author

@andyli we don't copy any file to cygwin. If there's an existing cygwin, we only check that the required tools are here and tell the user if some is missing. The mingw distrib we are building is only used when there is no existing cygwin installation found

@andyli
Copy link
Member

andyli commented May 18, 2017

I see. I'm not sure if ocamhaxe would be that useful for existing cygwin installation, but I will proceed to automate the dist creation.

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

2 participants