forked from Tencent/tquic
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (32 loc) · 825 Bytes
/
rust.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
38
39
40
41
42
43
44
name: Rust
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Code format check
run: cargo fmt --check
- name: Build TQUIC library
run: cargo build -F ffi --verbose
- name: Build TQUIC tools
run: cargo build --all --verbose
- name: Code lint check
run: cargo clippy
- name: Unit testing
run: cargo test --verbose
- name: Fuzz testing
run: |
rustup install nightly
rustup default nightly
cargo install cargo-fuzz
cargo fuzz run client_conn -- -max_total_time=30
cargo fuzz run server_conn -- -max_total_time=30