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

Remove branch: master from AppVeyor deploy #301

Merged
merged 4 commits into from
Sep 12, 2018

Conversation

alexcrichton
Copy link
Contributor

@alexcrichton alexcrichton commented Sep 12, 2018

fixes #147

It looks like Windows releases aren't getting build for wasm-pack tags
unfortunately and taking a look at the last logs it looks like the
reason is that the master branch is required. I'm not actually entirely sure
what's required here but by removing this it's closer to wasm-bindgen's
configuration which I think is working!

It looks like Windows releases aren't getting build for wasm-pack tags
unfortunately and taking a look at the [last logs][logs] it looks like the
reason is that the `master` branch is required. I'm not actually entirely sure
what's required here but by removing this it's closer to `wasm-bindgen`'s
configuration which I think is working!

[logs]: https://ci.appveyor.com/project/ashleygwilliams/wasm-pack-071k0/build/1.0.72
This is required later for deployment due to copying over
`target/release/wasm-pack.exe`, so let's make sure that it's available when
we're copying things over!
@alexcrichton
Copy link
Contributor Author

Er actually realized that the deploy wasn't actually getting its release artifacts built as well so pushed up a commit for that as well as making the binaries a bit more compatible with more windows versions.

.appveyor.yml Outdated
@@ -8,7 +12,7 @@ install:
build: false

test_script:
- cargo test --locked -- --test-threads 1
- cargo test --release --locked -- --test-threads 1
Copy link
Member

Choose a reason for hiding this comment

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

i think we can also remove the test-threads req here now

Copy link
Member

Choose a reason for hiding this comment

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

should we add --release to .travis.yml as well? https://github.com/rustwasm/wasm-pack/blob/master/.travis.yml#L39

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nah that's fine to be non-release as it's not producing a final binary. AppVeyor right now doesn't have separate jobs (like Travis does) for building releases and testing, and from my experience at least that tends to work out alright.

In that sense this is just needed here for AppVeyor because we're both testing a binary and publishing it, whereas Travis either publishes it or tests it. Testing without --release is generally preferred for Travis because it gets you results more quickly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also certainly, can remove --test-threads!

Copy link
Member

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

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

thank you SO MUCH for this, this has been frustrating me for a while. i really appreciate it

@@ -1,3 +1,7 @@
environment:
global:
RUSTFLAGS: -C target-feature=+crt-static
Copy link
Member

Choose a reason for hiding this comment

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

TIL!

Pass the `-C target-feature=+crt-static` feature on AppVeyor to ensure that
binaries produced on Windows have as few dynamic dependencies as possible,
making them more portable to run on more Windows machines.
@ashleygwilliams ashleygwilliams merged commit 2cd4504 into rustwasm:master Sep 12, 2018
@ashleygwilliams
Copy link
Member

🎉

@ashleygwilliams ashleygwilliams added this to the 0.5.0 milestone Sep 12, 2018
@alexcrichton alexcrichton deleted the tweak-appveyor branch September 12, 2018 19:05
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.

debug build windows appveyor releases
2 participants