Skip to content

Commit

Permalink
Merge branch 'master' into quiche-apps-preferred-addressing
Browse files Browse the repository at this point in the history
  • Loading branch information
Clendenin committed May 9, 2024
2 parents eced020 + a9b3954 commit 6029e48
Show file tree
Hide file tree
Showing 20 changed files with 1,113 additions and 993 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
uses: dtolnay/rust-toolchain@nightly

- name: Run cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --all-features
run: cargo doc --no-deps --all-features

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v3
Expand All @@ -43,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'

Expand Down
81 changes: 21 additions & 60 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Nightly
env:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "--cfg docsrs"
TOOLCHAIN: "nightly"
RUSTTOOLCHAIN: "nightly"

jobs:
quiche:
Expand All @@ -15,49 +15,32 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ env.TOOLCHAIN }}
toolchain: ${{ env.RUSTTOOLCHAIN }}
components: rustfmt
override: true

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
run: cargo fmt -- --check

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --all-targets --features=ffi,qlog
run: cargo test --verbose --all-targets --features=ffi,qlog

# Need to run doc tests separately.
# (https://github.com/rust-lang/cargo/issues/6669)
- name: Run cargo doc test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --doc --features=ffi,qlog
run: cargo test --verbose --doc --features=ffi,qlog

- name: Run cargo package
uses: actions-rs/cargo@v1
with:
command: package
args: --verbose --workspace --exclude=quiche_apps --allow-dirty
run: cargo package --verbose --workspace --exclude=quiche_apps --allow-dirty

- name: Run cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --all-features --document-private-items
run: cargo doc --no-deps --all-features --document-private-items

- name: Build C examples
run: |
Expand All @@ -71,44 +54,30 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ env.TOOLCHAIN }}
toolchain: ${{ env.RUSTTOOLCHAIN }}
components: rustfmt
override: true

- name: Install cargo-fuzz
run: cargo install cargo-fuzz

- name: Run cargo fuzz for packet_recv_client
uses: actions-rs/cargo@v1
with:
command: fuzz
args: run packet_recv_client -- -runs=1
run: cargo fuzz run packet_recv_client -- -runs=1

- name: Run cargo fuzz for packet_recv_server
uses: actions-rs/cargo@v1
with:
command: fuzz
args: run packet_recv_server -- -runs=1
run: cargo fuzz run packet_recv_server -- -runs=1

- name: Run cargo fuzz for qpack_decode
uses: actions-rs/cargo@v1
with:
command: fuzz
args: run qpack_decode -- -runs=1
run: cargo fuzz run qpack_decode -- -runs=1

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path=fuzz/Cargo.toml -- --check
run: cargo fmt --manifest-path=fuzz/Cargo.toml -- --check

http3_test:
runs-on: ubuntu-latest
Expand All @@ -117,26 +86,18 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ env.TOOLCHAIN }}
toolchain: ${{ env.RUSTTOOLCHAIN }}
components: rustfmt
override: true

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --no-run --verbose --manifest-path=tools/http3_test/Cargo.toml
run: cargo test --no-run --verbose --manifest-path=tools/http3_test/Cargo.toml

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path=tools/http3_test/Cargo.toml -- --check
run: cargo fmt --manifest-path=tools/http3_test/Cargo.toml -- --check
Loading

0 comments on commit 6029e48

Please sign in to comment.