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

Incorporate TARGET in the install and build step #133

Merged
merged 2 commits into from Oct 20, 2017

Conversation

@matematikaadit
Copy link
Contributor

matematikaadit commented Oct 19, 2017

  • Tidying up the build matrix
    • All channels has TARGET env var
    • Build against this targets:
      • x86_64-unknown-linux-gnu
      • x86_64-unknown-linux-musl
      • i686-unknown-linux-gnu
      • i686-unknown-linux-musl
      • x86_64-apple-darwin
    • Code formating check has it's own item in the build matrix
  • Prevent target re-add error from rustup
  • Incorporate the TARGET env var in the install and script stage

fix #132

- Tidying up the build matrix
  - All channels has TARGET env var
  - Build against this targets:
    - x86_64-unknown-linux-gnu
    - x86_64-unknown-linux-musl
    - i686-unknown-linux-gnu
    - i686-unknown-linux-musl
    - x86_64-apple-darwin
  - Code formating check has it's own item in the build matrix
- Prevent target re-add error from rustup
- Incorporate the TARGET env var in the `install` and `script` stage
@sharkdp

This comment has been minimized.

Copy link
Owner

sharkdp commented Oct 19, 2017

Very cool, thank you very much for your contribution!

Do you think there is some way to reduce the total CI time a bit? Previously, Travis was running in 20-30min. Now it takes 1h 15min. Maybe we don't have to build nightly and beta for every target?

@matematikaadit

This comment has been minimized.

Copy link
Contributor Author

matematikaadit commented Oct 19, 2017

Feel free to exclude any matrix item. I just listed all of them because they're readily available and adding them is no hassle.

Probably only test for x86_64-unknown-linux-gnu on nightly and beta and remove the other target? Also, the target that listed under the # Stable channel. comment might become the one for the release deployment (issue #76). Feel free to drop any item that we don't wanna add to the release.

@sharkdp

This comment has been minimized.

Copy link
Owner

sharkdp commented Oct 20, 2017

Probably only test for x86_64-unknown-linux-gnu on nightly and beta and remove the other target?

Sounds good (maybe just comment them out for now). Would you like to include this within this PR?

Reducing total CI time
@matematikaadit

This comment has been minimized.

Copy link
Contributor Author

matematikaadit commented Oct 20, 2017

With pleasure.

Disabling:

  • x86_64-unknown-linux-musl
  • i686-unknown-linux-gnu
  • i686-unknown-linux-musl
  • x86_64-apple-darwin

on beta and nightly channels.

@sharkdp sharkdp merged commit d2d2c31 into sharkdp:master Oct 20, 2017
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@sharkdp

This comment has been minimized.

Copy link
Owner

sharkdp commented Oct 20, 2017

Thank you very much!!

Could you please sign #105?

@matematikaadit

This comment has been minimized.

Copy link
Contributor Author

matematikaadit commented Oct 20, 2017

Your welcome

Nice, total CI build time reduced to 16 minutes. 😄

Also I have some suspicion about what causing the failing code formatting check on nightly. Currently investigating it.

@matematikaadit matematikaadit deleted the matematikaadit:fix_travis_TARGET branch Oct 20, 2017
@pickfire

This comment has been minimized.

Copy link
Contributor

pickfire commented Oct 20, 2017

Maybe we could include fd.1 along with the compressed tarball? Reference implementation https://github.com/BurntSushi/ripgrep/blob/master/.travis.yml#L52-L53

@sharkdp What do you think?

@matematikaadit

This comment has been minimized.

Copy link
Contributor Author

matematikaadit commented Oct 20, 2017

Better place to discuss it I think is #76 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.