mirror of
https://github.com/wez/wezterm.git
synced 2024-12-26 06:42:12 +03:00
5514a69fa3
update to latest macos release (GH actions are removing 10.14). Explicitly update the toolchain; some instances are still on 1.38 but the current version is 1.39.
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, nightly]
|
|
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
|