Skip to content

Windows CI#2002

Merged
hdgarrood merged 3 commits into
purescript:masterfrom
hdgarrood:appveyor
Apr 9, 2016
Merged

Windows CI#2002
hdgarrood merged 3 commits into
purescript:masterfrom
hdgarrood:appveyor

Conversation

@hdgarrood

Copy link
Copy Markdown
Contributor
  • Add appveyor.yml for windows CI, with automatic release binary bundle
    publishing
  • Rework bundle/build-stack script to work on all OSes
  • Use SHA1 instead of MD5 for the Windows checksum.
  • Refactor the build-stack script a little
  • Remove all the other bundle build scripts
  • Include dependencies in binary bundles (resolves Include exact versions of used libraries in binary bundles? #1952)

I haven't managed to get strip to work on AppVeyor, but this script
has produced an identically sized bundle to the 0.8.4 one (21.3MB) so
maybe that's not worth worrying about.

The encrypted github token here is tied to my github account, but it appears I have the permission to edit releases now so that should work fine.

* Add appveyor.yml for windows CI, with automatic release binary bundle
  publishing
* Rework bundle/build-stack script to work on all OSes
* Use SHA1 instead of MD5 for the Windows checksum.
* Refactor the build-stack script a little
* Remove all the other bundle build scripts
* Include dependencies in binary bundles (resolves #1952)

I haven't managed to get `strip` to work on AppVeyor, but this script
has produced an identically sized bundle to the 0.8.4 one (21.3MB) so
maybe that's not worth worrying about.
Comment thread bundle/build-stack.sh
if [ "$OS" = "win64" ]
then
# msys/mingw does not include shasum. :(
SHASUM="openssl dgst -sha1"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah cool, I wondered how you'd "fixed" that.

@paf31

paf31 commented Apr 8, 2016

Copy link
Copy Markdown
Contributor

Looks great! Is Appveyor able to build Mac binaries too?

For the secret key, can it be put into an environment variable like in Travis? This way seems like a security issue.

@hdgarrood

Copy link
Copy Markdown
Contributor Author

No, Appveyor is just Windows. Travis can build Mac binaries, though.

The github token here is encrypted, so this ought to be safe (assuming Appveyor doesn't get hacked or anything) but yeah, we can do it like Travis too.

@hdgarrood

Copy link
Copy Markdown
Contributor Author

I'm going to merge this for now to stop it from making all the other CI builds fail; I think we can always revert this later if it turns out not to work well.

@hdgarrood hdgarrood merged commit 2183c0a into purescript:master Apr 9, 2016
@hdgarrood hdgarrood deleted the appveyor branch April 9, 2016 13:30
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

Successfully merging this pull request may close these issues.

Include exact versions of used libraries in binary bundles?

3 participants