relswap 0.0.8

Signed-release install/update engine with durable activation and crash recovery
Documentation
name: ci

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

env:
  CARGO_TERM_COLOR: always
  RUSTFLAGS: -D warnings
  # Platform failures here are usually a path several frames below the assertion, and the runner is
  # the only place some of them can be reproduced at all.
  RUST_BACKTRACE: 1

permissions:
  contents: read

jobs:
  # The activation engine's correctness is per-platform: Unix activates through a symlink and
  # Windows through a launcher plus an `active` selector, and the private-directory policy is a
  # different implementation on each. Running the suite on one host proves very little about the
  # other two, so the matrix is the point of this workflow rather than a formality.
  test:
    name: test ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
      - name: Test
        run: cargo test --locked --all-features

  lint:
    name: fmt and clippy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy, rustfmt
      - uses: Swatinem/rust-cache@v2
      - name: Format
        run: cargo fmt --check
      - name: Clippy
        run: cargo clippy --locked --all-features --all-targets

  # The crate declares rust-version = 1.88; verify it rather than trusting it.
  msrv:
    name: msrv 1.88
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@1.88
      - uses: Swatinem/rust-cache@v2
      - name: Check
        run: cargo check --locked --all-features --all-targets

  publish-dry-run:
    name: publish dry run
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
      - name: Package
        run: cargo publish --locked --dry-run