Skip to content

Commit

Permalink
Windows releases (#9)
Browse files Browse the repository at this point in the history
Upload GitHub release for the Windows build
  • Loading branch information
danreeves authored Nov 3, 2018
1 parent 40a032a commit 52f4b24
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,24 @@ main() {
linux)
stage=$(mktemp -d)
;;
windows)
stage=$(mktemp -d)
;;
osx)
stage=$(mktemp -d -t tmp)
;;
esac

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

cross rustc --bin $PKG_NAME --target $TARGET --release -- -C lto
local cargo=
if [ $TRAVIS_OS_NAME = linux ]; then
cargo='cross'
else
cargo='cargo'
fi

$cargo rustc --bin $PKG_NAME --target $TARGET --release -- -C lto
cp target/$TARGET/release/$PKG_NAME $stage/

cd $stage
Expand Down

0 comments on commit 52f4b24

Please sign in to comment.