preempt-rt 0.2.0

A lightweight Rust library for using the kernel's PREEMPT_RT scheduling functionality
Documentation
name: build and test

on:
  push:
    branches: ["main"]
  pull_request:
    branches: ["main"]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    strategy:
      matrix:
        arch: ["aarch64", "x86_64"]
        libc: ["gnu", "musl"]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Set rustup toolchain
        run: rustup default stable
      - name: Add requested targets
        run: rustup target add ${{matrix.arch}}-unknown-linux-${{matrix.libc}}
      - name: Build
        run: cargo build --target ${{matrix.arch}}-unknown-linux-${{matrix.libc}}
      - name: Check format
        run: cargo fmt --all --check
      - name: Check clippy
        run: cargo clippy --all-targets --all-features -- -D warnings

  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Set rustup toolchain
        run: rustup default stable
      - name: Run Tests
        run: cargo test --workspace