1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 05:42:03 +03:00
wezterm/.github/workflows/wezterm_ssh.yml
Jalil Salamé 66b29c88e0
ci: Use rust-cache instead of the general cache action (#3341)
* feat: Cache Rust artifacts using Swatinem/rust-cache@v2

* chore: Generate workflows

* chore: Modify non generated workflows

* fix: Add caching to workflows that were missing it

* fix: Merge conflicts

* fix(ci): No need to hash files ourselves

* chore: Regenerate workflows

* fix: Only cache workspace (other changes don't invalidate cache)

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2023-03-24 17:54:36 -07:00

63 lines
1.7 KiB
YAML

name: wezterm-ssh
on:
pull_request:
branches:
- main
paths:
- "wezterm-ssh/**"
- "filedescriptor/**"
- "pty/**"
- "async_ossl/**"
- "termwiz/**"
- ".github/workflows/wezterm_ssh.yml"
push:
branches:
- main
paths:
- "wezterm-ssh/**"
- "filedescriptor/**"
- "pty/**"
- "async_ossl/**"
- "termwiz/**"
- ".github/workflows/wezterm_ssh.yml"
jobs:
build-wezterm-ssh-feature-libssh-rs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
with:
workspaces: |
wezterm-ssh
key: "wezterm-ssh-libssh-rs-${{ runner.os }}"
- 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@v3
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
with:
workspaces: |
wezterm-ssh
key: "wezterm-ssh-ssh2-${{ runner.os }}"
- 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"