git-commit-helper 0.1.7

Git Commit Helper is a practical tool that leverages large language models (LLMs) to analyze changes in a Git repository. It helps users generate meaningful commit messages, addressing the difficulties users may encounter when writing commit messages. At the same time, it provides a user-friendly command-line interaction experience.
Documentation
name: git-commit-helper

on:
  push:
    tags:
      - "v*"

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    name: Build git-commit-helper
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        include:
          - build: linux_x86_64
            target: x86_64-unknown-linux-gnu
            os: ubuntu-latest 
            command: sudo apt update && sudo apt-get install libssl-dev pkg-config -y
            file: git-commit-helper
          - build: macos_x86_64
            target: x86_64-apple-darwin
            os: macos-13
            command: brew install openssl
            file: git-commit-helper
          - build: macos_arm64
            target: aarch64-apple-darwin
            os: macos-latest
            command: brew install openssl
            file: git-commit-helper
          - build: windows_x86_64
            target: x86_64-pc-windows-msvc
            os: windows-latest
            command: choco install openssl
            file: git-commit-helper.exe

    steps:
      - uses: actions/checkout@v4

      - name: Install Requirements
        run: ${{ matrix.command }}

      - name: Add Nasm
        if: startsWith(matrix.os, 'windows')
        uses: ilammy/setup-nasm@v1

      - name: Add Target
        run: rustup target add ${{ matrix.target }}

      - name: Build
        run: cargo build --release --target ${{ matrix.target }} --verbose

      - name: Create Release
        id: create_release
        uses: softprops/action-gh-release@v2
        if: startsWith(github.ref, 'refs/tags/')
        with:
          files: target/${{ matrix.target }}/release/${{ matrix.file }}
          body: "Release of git-commit-helper"
          token: ${{ secrets.ACCESS_TOKEN }}

      - name: Upload Release Asset
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: target/${{ matrix.target }}/release/${{ matrix.file }}
          asset_name: git-commit-helper-${{ matrix.target }}
          asset_content_type: application/octet-stream