Skip to content

CI: test x86_64-pc-windows-gnu #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ matrix:
- env: TARGET=aarch64-unknown-linux-gnu
os: linux
dist: trusty
sudo: required
addons:
apt:
packages:
Expand Down Expand Up @@ -52,6 +51,14 @@ matrix:
os: osx
- env: TARGET=x86_64-unknown-linux-gnu
os: linux
- env: TARGET=x86_64-pc-windows-gnu
os: linux
dist: trusty
sudo: required
addons:
apt:
packages:
- gcc-mingw-w64
allow_failures:
# FIXME(#2)
- env: TARGET=armv7-unknown-linux-gnueabihf
Expand Down
3 changes: 3 additions & 0 deletions ci/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ case $TARGET in
export PREFIX=arm-linux-gnueabihf-
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
;;
x86_64-pc-windows-gnu)
export PREFIX=x86_64-w64-mingw32-
;;
esac
10 changes: 10 additions & 0 deletions ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ install_c_toolchain() {
esac
}

install_wine() {
case $TARGET in
x86_64-pc-windows-gnu)
sudo apt-get install -y --no-install-recommends \
wine1.6-amd64
;;
esac
}

install_rust() {
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=nightly

Expand Down Expand Up @@ -51,6 +60,7 @@ EOF
main() {
install_binutils
install_c_toolchain
install_wine
install_rust
add_rustup_target
configure_cargo
Expand Down