git2txt 0.1.2

Converts a Git repository to a single TXT file
Documentation
name: build

on:
  pull_request:
  push:
    branches:
      - main

jobs:
  build:
    name: Builds on ${{ matrix.name }}
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        name:
          - linux-x64-musl
          - macos-x64
          - macos-aarch64

        include:
          - name: linux-x64-musl
            os: ubuntu-latest
            target: x86_64-unknown-linux-musl
            exe: git2txt

          - name: macos-x64
            os: macos-latest
            target: x86_64-apple-darwin
            exe: git2txt

          - name: macos-aarch64
            os: macos-latest
            target: aarch64-apple-darwin
            exe: git2txt

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Rust Cache
        uses: Swatinem/rust-cache@v2

      - name: Setup Rust
        uses: dtolnay/rust-toolchain@stable
        with:
          targets: ${{ matrix.target }}

      - name: Install ${{ matrix.name }} System Dependencies
        if: matrix.name == 'linux-x64-musl'
        run: |
          sudo apt-get update
          sudo apt-get install -y musl-tools

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