1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 19:27:22 +03:00
wezterm/.github/workflows/windows.yml

51 lines
1.2 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, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Update submodules
run: git submodule update --init
- 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 }}
- 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