Skip to content

Commit 5c075fc

Browse files
committed
Add windows cross compilation.
1 parent 064e4b0 commit 5c075fc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.travis.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1+
sudo: required
12
language: rust
23
rust:
34
- nightly
45

6+
before_install:
7+
- sudo apt-get update
8+
- sudo apt-get install mingw-w64
9+
510
script:
611
- cargo test
712
- rustup target add x86_64-unknown-linux-musl
13+
- rustup target add x86_64-pc-windows-gnu
814
- cargo build --release --target=x86_64-unknown-linux-musl
15+
- mv target/x86_64-unknown-linux-musl/release/{cli,geometrify-linux64}
16+
- cargo build --release --target=x86_64-pc-windows-gnu
17+
- mv target/x86_64-pc-windows-gnu/release/{cli,geometrify-win64}
918

1019
deploy:
1120
provider: releases
1221
skip_cleanup: true
1322
api_key:
1423
secure: $apikey
15-
file: "target/x86_64-unknown-linux-musl/release/cli"
24+
file:
25+
- "target/x86_64-unknown-linux-musl/release/geometrify-linux64"
26+
- "target/x86_64-pc-windows-gnu/release/geometrify-win64"

0 commit comments

Comments
 (0)