py2pyd 0.1.3

A Rust-based tool to compile Python modules to pyd files
name: Release

on:
  push:
    tags:
      - "v*"

permissions:
  contents: write

jobs:
  # Use reusable release workflow from rust-actions-toolkit
  # This includes zero-dependency builds for all target platforms
  release:
    uses: loonghao/rust-actions-toolkit/.github/workflows/reusable-release.yml@v2.2.0
    with:
      # Binary name (auto-detected from Cargo.toml if not provided)
      binary-name: "py2pyd"
      # Rust toolchain version
      rust-toolchain: stable
      # Disable Python wheels for this binary project
      enable-python-wheels: false
      # Target platforms for zero-dependency builds
      target-platforms: |
        [
          {"target": "x86_64-pc-windows-gnu", "os": "ubuntu-22.04"},
          {"target": "i686-pc-windows-gnu", "os": "ubuntu-22.04"},
          {"target": "x86_64-unknown-linux-musl", "os": "ubuntu-22.04"},
          {"target": "aarch64-unknown-linux-musl", "os": "ubuntu-22.04"},
          {"target": "x86_64-unknown-linux-gnu", "os": "ubuntu-22.04"},
          {"target": "aarch64-unknown-linux-gnu", "os": "ubuntu-22.04"},
          {"target": "x86_64-apple-darwin", "os": "macos-13"},
          {"target": "aarch64-apple-darwin", "os": "macos-13"}
        ]
    secrets: inherit