kangaroo 0.8.0

Pollard's Kangaroo ECDLP solver for secp256k1 using Vulkan/Metal/DX12 compute
Documentation
name: Crates.io Publish

on:
  push:
    tags:
      - 'v*'

permissions:
  contents: read

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

      - name: Setup Rust
        uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7
        with:
          toolchain: stable

      - name: Cache cargo
        uses: Swatinem/rust-cache@c676846f29d98ff6b0106d3608c7ffd4048af17b

      - name: Build
        run: cargo build --all-features --locked

      - name: Run clippy
        run: cargo clippy --all-features --locked -- -D warnings

      - name: Run tests
        run: cargo test --all-features --locked

  publish:
    needs: checks
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Setup Rust
        uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7
        with:
          toolchain: stable

      - name: Cache cargo
        uses: Swatinem/rust-cache@c676846f29d98ff6b0106d3608c7ffd4048af17b

      - name: Publish to crates.io
        run: cargo publish --locked
        env:
          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}