Skip to content

Commit

Permalink
Fix because I suck at bash
Browse files Browse the repository at this point in the history
  • Loading branch information
richiksc committed Apr 13, 2019
1 parent 0540bcc commit 40d7415
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .ci/win-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
test -n "$WIN"
&& rustup target add $WIN
&& printf "[target.$WIN]\nlinker = \"x86_64-w64-mingw32-gcc\"" >> ~/.cargo/config
&& cargo build --release --target=$WIN
&& mv target/$WIN/release/badlogvis.exe target/$WIN/release/badlogvis-$WIN.exe
if [[ -n "$WIN" ]]; then
rustup target add $WIN &&
printf "[target.$WIN]\nlinker = \"x86_64-w64-mingw32-gcc\"" >> ~/.cargo/config &&
cargo build --release --target=$WIN &&
mv target/$WIN/release/badlogvis.exe target/$WIN/release/badlogvis-$WIN.exe
fi

0 comments on commit 40d7415

Please sign in to comment.