From e46e2bae804ef1fcd3a1148e377e526d8b683e99 Mon Sep 17 00:00:00 2001 From: Chip Senkbeil Date: Thu, 13 Jan 2022 19:48:33 -0600 Subject: [PATCH] Add wezterm-ssh independent CI task to verify libssh-rs and ssh2 features can work independently (#1544) Add wezterm-ssh independent CI task to verify libssh-rs and ssh2 features can work independently --- .github/workflows/wezterm_ssh.yml | 70 +++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/wezterm_ssh.yml diff --git a/.github/workflows/wezterm_ssh.yml b/.github/workflows/wezterm_ssh.yml new file mode 100644 index 000000000..15454afec --- /dev/null +++ b/.github/workflows/wezterm_ssh.yml @@ -0,0 +1,70 @@ +name: wezterm-ssh + +on: + pull_request: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/termwiz.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + push: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/termwiz.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + +jobs: + build-wezterm-ssh-feature-libssh-rs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: Build + run: | + source $HOME/.cargo/env + cargo build -p wezterm-ssh --no-default-features --features "libssh-rs vendored-openssl-libssh-rs" + cargo test -p wezterm-ssh --no-default-features --features "libssh-rs vendored-openssl-libssh-rs" + build-wezterm-ssh-feature-ssh2: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: Build + run: | + source $HOME/.cargo/env + cargo build -p wezterm-ssh --no-default-features --features "ssh2 vendored-openssl-ssh2" + cargo test -p wezterm-ssh --no-default-features --features "ssh2 vendored-openssl-ssh2" +