Skip to content

refactor: improve taggedlen maintainability and logic #168

refactor: improve taggedlen maintainability and logic

refactor: improve taggedlen maintainability and logic #168

Workflow file for this run

name: Rust
on:
push:
branches: [v2]
pull_request:
merge_group:
types: [checks_requested]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build and test (${{ matrix.name }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: stable
toolchain: stable
fuzz: true
- name: beta
toolchain: beta
fuzz: true
- name: nightly
toolchain: nightly
nightly: true
- name: MSRV
toolchain: "1.86.0"
- name: no_std
toolchain: stable
target: thumbv7m-none-eabi
no_std: true
steps:
- uses: actions/checkout@v7
- name: Install packages for fuzzing
if: matrix.fuzz
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- name: Style check
if: matrix.nightly
run: rustup component add rustfmt && cargo fmt --all --check
- name: Clippy check
if: matrix.nightly
run: rustup component add clippy && cargo clippy --all-features --all-targets -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
if: ${{ !matrix.no_std }}
run: cargo test --verbose
- name: Cargo test all features
if: matrix.nightly
run: cargo test --verbose --all-features
- name: Cargo doc all features
if: matrix.nightly
run: cargo doc --all-features --verbose
- name: Cargo bench all features
if: matrix.nightly
run: cargo clean && cargo bench --verbose --all-features
- name: miri
if: matrix.nightly
run: rustup component add miri && cargo miri test --verbose --all-features
- name: fuzz
if: matrix.fuzz
working-directory: fuzz
run: ./travis-fuzz.sh
build_result:
name: homu build finished
runs-on: ubuntu-latest
needs: build
steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"