Skip to content

Commit

Permalink
Add windows build (#379)
Browse files Browse the repository at this point in the history
* enable windows build

* setup s3

* allow branch

* add exe

* tweak

* determine binary name, only upload zip

* revert to github release
  • Loading branch information
Schaeff authored Jun 13, 2019
1 parent 9fb6d3f commit 0ec294b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ matrix:
# *BSD
- env: TARGET=x86_64-unknown-freebsd

# Windows
- env: TARGET=x86_64-pc-windows-gnu

before_install:
- set -e
- rustup self update
Expand Down
11 changes: 10 additions & 1 deletion ci/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,22 @@ main() {
;;
esac

case $TARGET in
x86_64-pc-windows-gnu)
BINARY_NAME=zokrates.exe
;;
*)
BINARY_NAME=zokrates
;;
esac

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

cross build --bin zokrates --target $TARGET --release

# Package artifacts
# Binary
cp target/$TARGET/release/zokrates $stage/
cp target/$TARGET/release/$BINARY_NAME $stage/
# Standard library
cp -r zokrates_stdlib/stdlib $stage

Expand Down

0 comments on commit 0ec294b

Please sign in to comment.