sync-cell-slice 0.9.14

Cells and slices that are accessible from multiple threads
Documentation
name: Rust

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

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - name: Check formatting
        run: cargo fmt -- --check
      - name: Run clippy
        run: cargo clippy --all-features --all-targets -- -D warnings
      - name: Run tests
        run: cargo test --verbose

  msrv:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - name: Install MSRV toolchain
        run: rustup toolchain install 1.85 --profile minimal
      - name: Build with MSRV
        run: cargo +1.85 build

  miri:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - name: Install Miri
        run: rustup toolchain install nightly --profile minimal --component miri
      - name: Run tests under Miri
        run: cargo +nightly miri test

  build-i686:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - name: Install 32-bit support
        run: sudo apt-get update && sudo apt-get install -y gcc-multilib
      - name: Add i686 target
        run: rustup target add i686-unknown-linux-gnu
      - name: Build (32-bit)
        run: cargo build --target i686-unknown-linux-gnu
      - name: Test (32-bit)
        run: cargo test --target i686-unknown-linux-gnu