mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 14:22:37 +03:00
6461dc15f0
I can't install it locally either, so let's just turn it off in the CI
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: posix
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-16.04, macos-latest]
|
|
rust_toolchain: [stable]
|
|
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 }}
|
|
source $HOME/.cargo/env
|
|
rustup update ${{ 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
|