You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
698B

  1. # This script takes care of building your crate and packaging it for release
  2. set -ex
  3. main() {
  4. local src=$(pwd) \
  5. stage=
  6. case $TRAVIS_OS_NAME in
  7. linux)
  8. stage=$(mktemp -d)
  9. ;;
  10. osx)
  11. stage=$(mktemp -d -t tmp)
  12. ;;
  13. esac
  14. test -f Cargo.lock || cargo generate-lockfile
  15. # TODO Update this to build the artifacts that matter to you
  16. cross rustc --bin tantivy --target $TARGET --release -- -C lto
  17. # TODO Update this to package the right artifacts
  18. cp target/$TARGET/release/tantivy $stage/
  19. cd $stage
  20. tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
  21. cd $src
  22. rm -rf $stage
  23. }
  24. main