Skip to content

fix: Passive mode with custom provided TcpStream #331

fix: Passive mode with custom provided TcpStream

fix: Passive mode with custom provided TcpStream #331

Workflow file for this run

name: Build
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Setup containers
run: docker compose -f "tests/docker-compose.yml" up -d --build
- name: Build simple
run: cargo build --package suppaftp
- name: Build secure (native-tls)
run: cargo build --features native-tls,deprecated --package suppaftp
- name: Build secure (rustls)
run: cargo build --features rustls,deprecated --package suppaftp
- name: Build async
run: cargo build --features async,deprecated --package suppaftp
- name: Build async-native-tls
run: cargo build --features async-native-tls,deprecated --package suppaftp
- name: Build all features
run: cargo build --features deprecated,native-tls,rustls,async-native-tls,async-rustls --package suppaftp
- name: Run tests
run: cargo test --package suppaftp --no-default-features --features rustls,native-tls,async-native-tls,async-rustls,with-containers --no-fail-fast
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --package suppaftp --features deprecated,native-tls,rustls,async-native-tls,async-rustls -- -Dwarnings