interpn 0.11.1

N-dimensional interpolation/extrapolation methods, no-std and no-alloc compatible.
Documentation
name: release-rust

permissions:
  contents: read

on:
  workflow_dispatch:

jobs:

  test_rust:
    uses: ./.github/workflows/test-rust.yml

  test_python:
    # Don't release a rust crate version that breaks the python bindings
    uses: ./.github/workflows/test-python.yml

  release-rust:
    name: Release Rust
    runs-on: ubuntu-latest
    needs: [test_rust, test_python]
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable

      - name: Publish
        if: github.ref == 'refs/heads/main'
        env:
          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
        run: cargo publish