Add initial rtt config. #95
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: 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 | |