Skip to content

chore: bump version to 0.1.1 #2

chore: bump version to 0.1.1

chore: bump version to 0.1.1 #2

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
needs_cross: true
- os: macos-13
target: x86_64-apple-darwin
- os: macos-14
target: aarch64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install Linux cross toolchain
if: matrix.needs_cross
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Build
env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
run: cargo build --locked --release --target ${{ matrix.target }}
- name: Package
run: |
BIN=git-ai-commit
ARTIFACT=${BIN}-${{ matrix.target }}.tar.gz
tar -czf "$ARTIFACT" -C "target/${{ matrix.target }}/release" "$BIN"
- name: Checksums
run: |
ARTIFACT=git-ai-commit-${{ matrix.target }}.tar.gz
OUT=checksums-${{ matrix.target }}.txt
if command -v shasum >/dev/null 2>&1; then
shasum -a 256 "$ARTIFACT" > "$OUT"
else
sha256sum "$ARTIFACT" > "$OUT"
fi
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: |
git-ai-commit-${{ matrix.target }}.tar.gz
checksums-${{ matrix.target }}.txt