1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00
alacritty/appveyor.yml
Zac Pullar-Strecker 15e0deae2b Add support for Windows (#1374)
Initial support for Windows is implemented using the winpty translation
layer. Clipboard support for Windows is provided through the `clipboard`
crate, and font rasterization is provided by RustType.

The tty.rs file has been split into OS-specific files to separate
standard pty handling from the winpty implementation.

Several binary components are fetched via build script on windows
including libclang and winpty. These could be integrated more directly
in the future either by building those dependencies as part of the
Alacritty build process or by leveraging git lfs to store the artifacts.

Fixes #28.
2018-10-16 10:02:52 -07:00

61 lines
1.4 KiB
YAML

# Based on the "trust" template v0.1.1
# https://github.com/japaric/trust/tree/v0.1.1
environment:
global:
CRATE_NAME: alacritty
RUST_BACKTRACE: 1
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
- platform: x86_64
TARGET: x86_64-pc-windows-msvc
RUST_VERSION: stable
CLIPPY: false
- platform: x86_64
TARGET: x86_64-pc-windows-msvc
RUST_VERSION: nightly
CLIPPY: true
matrix:
allow_failures:
- CLIPPY: true
shallow_clone: true
install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
build_script:
# Only build once per architecture
- if [%CLIPPY%]==[false] (
cargo +%RUST_TOOLCHAIN% build --release
)
before_test:
- If [%CLIPPY%]==[true] (
rustup component add clippy-preview
)
test_script:
- if [%CLIPPY%] == [true] (
cargo %RUST_TOOLCHAIN% clippy
) else (
cargo %RUST_TOOLCHAIN% test
)
cache:
# Ideally we'd also cache the toolchain but it's too large to fit in the free cache.
# Building alacritty takes significantly longer than downloading the toolchain.
- target
artifacts:
- path: target\release\alacritty.exe
name: Alacritty
- path: target\release\winpty-agent.exe
name: Winpty agent