bytesize 2.4.0

Semantic wrapper for byte count representations
Documentation
name: CI

on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]
  merge_group:
    types: [checks_requested]
  push:
    branches: [master]

permissions:
  contents: read

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

env:
  CARGO_TERM_COLOR: always

jobs:
  read_msrv:
    name: Read MSRV
    uses: actions-rust-lang/msrv/.github/workflows/msrv.yml@b95a3a81b0efee6438b858b41a84aff627e01351 # v0.1.1

  rust:
    needs: read_msrv

    strategy:
      fail-fast: false
      matrix:
        os:
          - { name: Linux, runner: ubuntu-latest }
          - { name: macOS, runner: macos-latest }
          - { name: Windows, runner: windows-latest }
        toolchain:
          - { name: stable, version: stable }
          - { name: msrv, version: "${{ needs.read_msrv.outputs.msrv }}" }

    name: ${{ matrix.os.name }} / ${{ matrix.toolchain.name }}
    runs-on: ${{ matrix.os.runner }}

    steps:
      - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

      - name: Install Rust (${{ matrix.toolchain.name }})
        uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0
        with:
          toolchain: ${{ matrix.toolchain.version }}
          target: thumbv6m-none-eabi

      - name: Install just, nextest
        uses: taiki-e/install-action@7769b73c2ec98c38dfcf2e18c83cfd4880c038c1 # v2.75.27
        with:
          tool: just,nextest

      - name: Work around MSRV issues
        if: matrix.toolchain.name == 'msrv'
        run: just downgrade-for-msrv

      - name: Test
        run: just test

      - name: Build (no-std)
        if: matrix.toolchain.name == 'stable'
        run: just build-no-std