-
-
Notifications
You must be signed in to change notification settings - Fork 31
37 lines (34 loc) · 1.43 KB
/
cargo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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