Skip to content

Commit

Permalink
Update build workflows (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
iyangsj authored Nov 28, 2023
1 parent ed07b66 commit f7c63e5
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 42 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/coverage.yml

This file was deleted.

46 changes: 38 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,62 @@ env:

jobs:
build:

name: Build
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: 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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tquic-interop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: TQUIC interop testing
name: Interop

on:
push:
Expand All @@ -10,7 +10,8 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
tquic_interop_testing:
name: Interop testing
runs-on: ubuntu-latest

strategy:
Expand Down

0 comments on commit f7c63e5

Please sign in to comment.