numeris 0.5.13

Pure-Rust numerical algorithms library — high performance with SIMD support while also supporting no-std for embedded and WASM targets.
Documentation
name: Release

# Create a GitHub Release whenever a version tag is pushed, so the docs header
# (which shows the latest *Release*) and the Releases page stay in sync with the
# published crate. Tag + push, e.g.:  git tag -a v0.5.13 -m "…" && git push origin v0.5.13
on:
  push:
    tags:
      - 'v*'

permissions:
  contents: write

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

      # Use the matching CHANGELOG section for the notes if present, otherwise
      # let GitHub auto-generate them from commits/PRs since the last release.
      - name: Extract changelog notes
        id: notes
        run: |
          version="${GITHUB_REF_NAME#v}"
          section=$(awk -v ver="$version" '
            $1 == "##" && $2 == ver { flag = 1; next }
            /^## / { flag = 0 }
            flag { print }
          ' CHANGELOG.md)
          if [ -n "$(printf '%s' "$section" | tr -d '[:space:]')" ]; then
            printf '%s\n' "$section" > notes.md
            echo "have_notes=true" >> "$GITHUB_OUTPUT"
          else
            echo "have_notes=false" >> "$GITHUB_OUTPUT"
          fi

      - name: Create release
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          if [ "${{ steps.notes.outputs.have_notes }}" = "true" ]; then
            gh release create "$GITHUB_REF_NAME" --title "$GITHUB_REF_NAME" --latest --notes-file notes.md
          else
            gh release create "$GITHUB_REF_NAME" --title "$GITHUB_REF_NAME" --latest --generate-notes
          fi