Skip to content

Release openssh-mux-client v0.16.0 #431

Release openssh-mux-client v0.16.0

Release openssh-mux-client v0.16.0 #431

Workflow file for this run

name: Rust
env:
CARGO_TERM_COLOR: always
on:
push:
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
pull_request:
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
jobs:
os-check:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
steps:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: actions/checkout@v3
- name: Create lockfile
run: cargo update
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ github.event.repository.name }}-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo-check-v2
- name: cargo check
run: cargo check --all-features
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create lockfile
run: cargo update
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ github.event.repository.name }}-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo-check-v2
- name: Run check
run: |
cargo clippy --all
cargo fmt --all -- --check
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: miri
- name: Create lockfile
run: cargo update
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ github.event.repository.name }}-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo-test-with-miri-v2
- name: Run tests
run: ./run_test.sh