Skip to content

Move simple_server.c to tquic-group repo. #92

Move simple_server.c to tquic-group repo.

Move simple_server.c to tquic-group repo. #92

Workflow file for this run

name: Rust
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Update rust
run: rustup update
- name: Build TQUIC library
run: cargo build -F ffi --verbose
- name: Build TQUIC tools
run: cargo build --all --verbose
static_analysis:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Update rust
run: rustup update
- name: Code format check
run: cargo fmt --check
- name: Code lint check
run: cargo clippy --all -- -D warnings
unit_testing:
name: Unit testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Update rust
run: rustup update
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Unit testing
run: cargo test --verbose
- name: Generate code coverage
run: cargo llvm-cov --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
fuzz_testing:
name: Fuzz testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- 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