Rust CI / cargo fmt (push) Successful in 45s
Rust CI / cargo check (x86_64-unknown-linux-gnu) (push) Successful in 1m4s
Rust CI / cargo clippy (push) Successful in 1m6s
Rust CI / cargo test (x86_64-unknown-linux-gnu) (push) Successful in 1m48s
Rust CI / cargo check (x86_64-unknown-linux-musl) (push) Successful in 50s
Rust CI / cargo doc (push) Failing after 48s
Rust CI / cargo test (x86_64-unknown-linux-musl) (push) Successful in 1m49s
Proto Fuzz Smoke / cargo fuzz smoke (push) Successful in 2m3s
Supply chain / cargo-deny advisories (push) Failing after 29s
Netem Interop / netem interop (push) Successful in 1m33s
Supply chain / cargo-deny bans licenses sources (push) Failing after 27s
Supply chain / actionlint (push) Failing after 14s
161 lines
3.8 KiB
YAML
161 lines
3.8 KiB
YAML
name: Rust CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
fmt:
|
|
name: cargo fmt
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Rust toolchain
|
|
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1
|
|
with:
|
|
components: rustfmt
|
|
cache: false
|
|
|
|
- name: Check formatting
|
|
uses: actions-rust-lang/rustfmt@4066006ec54a31931b9b1fddfd38f2fdf2d27143 # v1
|
|
|
|
clippy:
|
|
name: cargo clippy
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Rust toolchain
|
|
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1
|
|
with:
|
|
components: clippy
|
|
cache: false
|
|
|
|
- name: Run clippy
|
|
run: |
|
|
cargo clippy \
|
|
--workspace \
|
|
--all-targets \
|
|
--all-features \
|
|
--locked \
|
|
-- -D warnings
|
|
|
|
- name: Run clippy without default features
|
|
run: |
|
|
cargo clippy \
|
|
--workspace \
|
|
--all-targets \
|
|
--no-default-features \
|
|
--locked \
|
|
-- -D warnings
|
|
|
|
verify:
|
|
name: cargo ${{ matrix.task }} (${{ matrix.target }})
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- task: check
|
|
target: x86_64-unknown-linux-gnu
|
|
musl: false
|
|
|
|
- task: test
|
|
target: x86_64-unknown-linux-gnu
|
|
musl: false
|
|
|
|
- task: check
|
|
target: x86_64-unknown-linux-musl
|
|
musl: true
|
|
|
|
- task: test
|
|
target: x86_64-unknown-linux-musl
|
|
musl: true
|
|
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install musl toolchain
|
|
if: matrix.musl
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install --no-install-recommends musl-tools
|
|
|
|
- name: Install Rust toolchain
|
|
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1
|
|
with:
|
|
target: ${{ matrix.target }}
|
|
cache: false
|
|
|
|
- name: Run ${{ matrix.task }} with all features
|
|
run: |
|
|
cargo ${{ matrix.task }} \
|
|
--workspace \
|
|
--all-targets \
|
|
--all-features \
|
|
--target ${{ matrix.target }} \
|
|
--locked
|
|
|
|
- name: Run ${{ matrix.task }} without default features
|
|
run: |
|
|
cargo ${{ matrix.task }} \
|
|
--workspace \
|
|
--all-targets \
|
|
--no-default-features \
|
|
--target ${{ matrix.target }} \
|
|
--locked
|
|
|
|
docs:
|
|
name: cargo doc
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
|
|
env:
|
|
RUSTDOCFLAGS: "-D warnings"
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Rust toolchain
|
|
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1
|
|
with:
|
|
cache: false
|
|
|
|
- name: Check docs
|
|
run: |
|
|
cargo doc \
|
|
--workspace \
|
|
--all-features \
|
|
--no-deps \
|
|
--locked
|