1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-29 16:42:13 +03:00
wezterm/.github/workflows/posix.yml
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

44 lines
977 B
YAML

name: posix
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-16.04, macos-10.14]
rust_toolchain: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Install System Deps
run: sudo ./get-deps
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain ${{ matrix.rust_toolchain }}
- name: Show versions
run: |
source $HOME/.cargo/env
rustc -V
cargo -V
- name: Check formatting
if: matrix.rust_toolchain == 'stable'
run: |
source $HOME/.cargo/env
rustup component add rustfmt
cargo fmt --all -- --check
- name: Build
run: |
source $HOME/.cargo/env
cargo build --all
- name: Test
run: |
source $HOME/.cargo/env
cargo test --all