fix: Passive mode with custom provided TcpStream #328
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |