Files
LLeMbas-TTY/.github/workflows/windows.yml
T
Wez Furlong 61b27c8089 teach build.rs to init submodules if needed
Forgetting to update the submodules is a commonly reported build
issue with an obscure error message:

```
CMake Error: The source directory "/home/USER/wezterm/target/debug/build/freetype-430fe24cb64c561c/out/zlib-src/zlib" does not appear to contain CMakeLists.txt.
```

this teaches the build.rs machinery to run the submodule update
if it looks like it is needed.
2019-10-29 08:42:38 -07:00

49 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 }}
- 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