mirror of
https://github.com/chipsenkbeil/distant.git
synced 2024-11-15 06:12:56 +00:00
16bed4690b
* Update distant-ssh2 with new changes to wezterm-ssh * Implement lua module (distant-lua) * Implement tests for lua module (distant-lua-tests) * Add untested windows daemon support * distant binary now compiles on windows * Split up Github actions for Windows, MacOS, and Linux into individual yaml files
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
name: CI (All)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
clippy:
|
|
name: Lint with clippy
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RUSTFLAGS: -Dwarnings
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Rust (clippy)
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
components: clippy
|
|
- uses: Swatinem/rust-cache@v1
|
|
- name: Check Cargo availability
|
|
run: cargo --version
|
|
- name: distant-core (all features)
|
|
run: cargo clippy -p distant-core --all-targets --verbose --all-features
|
|
- name: distant-ssh2 (all features)
|
|
run: cargo clippy -p distant-ssh2 --all-targets --verbose --all-features
|
|
- name: distant-lua (lua51 & vendored)
|
|
run: (cd distant-lua && cargo clippy --all-targets --verbose --no-default-features --features "lua51,vendored")
|
|
shell: bash
|
|
- name: distant-lua-tests (lua51 & vendored)
|
|
run: (cd distant-lua-tests && cargo clippy --tests --verbose --no-default-features --features "lua51,vendored")
|
|
shell: bash
|
|
- name: distant (all features)
|
|
run: cargo clippy --all-targets --verbose --all-features
|
|
|
|
rustfmt:
|
|
name: Verify code formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Rust (rustfmt)
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
components: rustfmt
|
|
- uses: Swatinem/rust-cache@v1
|
|
- name: Check Cargo availability
|
|
run: cargo --version
|
|
- run: cargo fmt --all -- --check
|