Skip to content

refactor(core): make rkyv and serde optional #15

refactor(core): make rkyv and serde optional

refactor(core): make rkyv and serde optional #15

Workflow file for this run

name: Rust
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- run: rustup toolchain install stable --profile minimal --no-self-update
- uses: Swatinem/rust-cache@v2
- name: Code linting
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: Code formatting
run: cargo fmt --all --check
- name: Build
run: cargo build
- name: Run tests
run: cargo test --workspace --all-features --all-targets
- name: Check docs
env:
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests"
run: cargo doc --package am4 --all-features --no-deps