2022-01-14 04:48:33 +03:00
|
|
|
name: wezterm-ssh
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-03-16 09:40:05 +03:00
|
|
|
paths:
|
|
|
|
- "wezterm-ssh/**"
|
|
|
|
- "filedescriptor/**"
|
|
|
|
- "pty/**"
|
|
|
|
- "async_ossl/**"
|
|
|
|
- "termwiz/**"
|
|
|
|
- ".github/workflows/wezterm_ssh.yml"
|
2022-01-14 04:48:33 +03:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-03-16 09:40:05 +03:00
|
|
|
paths:
|
|
|
|
- "wezterm-ssh/**"
|
|
|
|
- "filedescriptor/**"
|
|
|
|
- "pty/**"
|
|
|
|
- "async_ossl/**"
|
|
|
|
- "termwiz/**"
|
|
|
|
- ".github/workflows/wezterm_ssh.yml"
|
2022-01-14 04:48:33 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-wezterm-ssh-feature-libssh-rs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-11 04:34:51 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-01-14 04:48:33 +03:00
|
|
|
- name: "Install Rust"
|
2023-03-24 20:16:09 +03:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2023-03-25 03:54:36 +03:00
|
|
|
- name: "Cache cargo"
|
|
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
with:
|
|
|
|
workspaces: |
|
|
|
|
wezterm-ssh
|
|
|
|
key: "wezterm-ssh-libssh-rs-${{ runner.os }}"
|
2023-03-25 07:11:22 +03:00
|
|
|
- name: "Install cargo-nextest from Cargo"
|
|
|
|
uses: baptiste0928/cargo-install@v2
|
|
|
|
with:
|
|
|
|
crate: "cargo-nextest"
|
2022-01-14 04:48:33 +03:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
cargo build -p wezterm-ssh --no-default-features --features "libssh-rs vendored-openssl-libssh-rs"
|
2023-03-25 07:11:22 +03:00
|
|
|
cargo nextest run --no-fail-fast -p wezterm-ssh --no-default-features --features "libssh-rs vendored-openssl-libssh-rs"
|
2022-01-14 04:48:33 +03:00
|
|
|
build-wezterm-ssh-feature-ssh2:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-11 04:34:51 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-01-14 04:48:33 +03:00
|
|
|
- name: "Install Rust"
|
2023-03-24 20:16:09 +03:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2023-03-25 03:54:36 +03:00
|
|
|
- name: "Cache cargo"
|
|
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
with:
|
|
|
|
workspaces: |
|
|
|
|
wezterm-ssh
|
|
|
|
key: "wezterm-ssh-ssh2-${{ runner.os }}"
|
2023-03-25 07:11:22 +03:00
|
|
|
- name: "Install cargo-nextest from Cargo"
|
|
|
|
uses: baptiste0928/cargo-install@v2
|
|
|
|
with:
|
|
|
|
crate: "cargo-nextest"
|
2022-01-14 04:48:33 +03:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
cargo build -p wezterm-ssh --no-default-features --features "ssh2 vendored-openssl-ssh2"
|
2023-03-25 07:11:22 +03:00
|
|
|
cargo nextest run --no-fail-fast -p wezterm-ssh --no-default-features --features "ssh2 vendored-openssl-ssh2"
|
2022-01-14 04:48:33 +03:00
|
|
|
|