Skip to content

Commit

Permalink
Disable tarring of releases
Browse files Browse the repository at this point in the history
  • Loading branch information
io12 committed Jan 12, 2019
1 parent e3d809c commit ea14cce
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ before_deploy:
deploy:
api_key:
secure: b1jyqas/cTqUNa4Z8t4eqdu2It+QS8jpnscjLZ/QwgHPiuRC6bRqCIDsVblYeYTAEAOijkjKMhq/Uo65VDFGgVRslV6vMoJhECBId/6D2qbML0IAQmOkogUTh6J7ohmc4KuSOyIKN4BeYj58LLHMwrMRmvX8XVegxJeocSK5cgI1qotcpwGm6C34kflKaNDCO6Rk8HkDXdQacRB1MOtow/qbrRE0k2PQ65KO0Maljzt9J/wGZO26cAVjz1wgYAsKLJ0IKnhn+mqBRpNKObYTU8G9beRts/MlcGf0RfB1eBcYNJpeIW2zautoXWWdcJ502w32NCQ4STGynpzsa5uGaPhQXxQy+OgRe00pnT8itkENN5A+YqsNdMGv5Fmd1hG6kQqf8vO1E2SdzsZPENmaY2IuttMMRqPRyDkepvcvcF3D3eQcuSIPA7vHfl6mdZPEQCgKC+c0335tsOEAJBYr1RDMTBtZof9gZnhW2glPES0EBxewlOjaa0nQEqFp8KdMlrB7bIfo69hkEloQF2qZUZRQ6N63AeFkZY5qRruab4ElOr4A+jk3ACi719UJtxwqIlHmWQHTG57IEzy7olbU1TPiDRWnJiykHMFzur6R/D/QwLT2BpMtO2czaw7fFtti/eq5Btl+pEMxq01oFw7l6NUGLMB3CyxYKkW0B5LThIw=
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
file:
- $CRATE_NAME-macos
- $CRATE_NAME-linux
- $CRATE_NAME-windows.exe
on:
condition: $TRAVIS_RUST_VERSION = stable
tags: true
Expand Down
35 changes: 15 additions & 20 deletions ci/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,25 @@
set -ex

main() {
local src=$(pwd) \
stage=

case $TRAVIS_OS_NAME in
linux)
stage=$(mktemp -d)
;;
osx)
stage=$(mktemp -d -t tmp)
;;
esac

test -f Cargo.lock || cargo generate-lockfile

cross rustc --bin $CRATE_NAME --target $TARGET --release -- -C lto

cp target/$TARGET/release/$CRATE_NAME $stage/ \
|| cp target/$TARGET/release/$CRATE_NAME.exe $stage/

cd $stage
tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
cd $src

rm -rf $stage
case $TARGET in
x86_64-apple-darwin)
cp target/$TARGET/release/$CRATE_NAME $CRATE_NAME-macos
;;
x86_64-unknown-linux-gnu)
cp target/$TARGET/release/$CRATE_NAME $CRATE_NAME-linux
;;
x86_64-pc-windows-gnu)
cp target/$TARGET/release/$CRATE_NAME.exe $CRATE_NAME-windows.exe
;;
*)
echo "error: Unknown target $TARGET"
exit 1
;;
esac
}

main

0 comments on commit ea14cce

Please sign in to comment.