1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 11:17:15 +03:00
wezterm/.github/workflows/windows.yml
Wez Furlong 6461dc15f0 ci: nightly rust isn't installable and is broken
I can't install it locally either, so let's just turn it
off in the CI
2019-11-22 01:20:02 +00:00

50 lines
1.1 KiB
YAML

name: windows
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [vs2017-win2016]
rust_toolchain: [stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Install Rust
shell: cmd
run: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -yv --default-toolchain ${{ matrix.rust_toolchain }}
rustup update ${{ matrix.rust_toolchain }}
- name: Show versions
shell: cmd
run: |
set path "%USERPROFILE%\.cargo\bin;%PATH"
rustc -V
cargo -V
- name: Check formatting
if: matrix.rust_toolchain == 'stable'
shell: cmd
run: |
set path "%USERPROFILE%\.cargo\bin;%PATH"
rustup component add rustfmt
cargo fmt --all -- --check
- name: Build
shell: cmd
run: |
set path "%USERPROFILE%\.cargo\bin;%PATH"
cargo build --all
- name: Test
shell: cmd
run: |
set path "%USERPROFILE%\.cargo\bin;%PATH"
cargo test --all