mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 06:12:16 +03:00
6461dc15f0
I can't install it locally either, so let's just turn it off in the CI
50 lines
1.1 KiB
YAML
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
|