Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Fix finitechat Hermes outbound rendering compatibility #3

Fix finitechat Hermes outbound rendering compatibility

Fix finitechat Hermes outbound rendering compatibility #3

Workflow file for this run

name: Release finitechat
on:
push:
tags:
- "v*"
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- runs_on: ubuntu-latest
asset_name: finitechat-linux-x86_64
target: x86_64-unknown-linux-gnu
- runs_on: macos-14
asset_name: finitechat-macos-aarch64
target: aarch64-apple-darwin
- runs_on: macos-14
asset_name: finitechat-macos-x86_64
target: x86_64-apple-darwin
runs-on: ${{ matrix.runs_on }}
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain install 1.88.0 --profile minimal
rustup default 1.88.0
rustup target add "${{ matrix.target }}"
- name: Build finitechat
run: cargo build --locked --release --target "${{ matrix.target }}" --package finitechat-cli --bin finitechat
- name: Package finitechat
shell: bash
run: |
mkdir -p dist
cp "target/${{ matrix.target }}/release/finitechat" dist/finitechat
tar -C dist -czf "${{ matrix.asset_name }}.tar.gz" finitechat
shasum -a 256 "${{ matrix.asset_name }}.tar.gz" > "${{ matrix.asset_name }}.tar.gz.sha256"
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.asset_name }}
path: |
${{ matrix.asset_name }}.tar.gz
${{ matrix.asset_name }}.tar.gz.sha256
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
path: release-assets
merge-multiple: true
- name: Create or update GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: |
tag="${GITHUB_REF_NAME}"
if gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
gh release upload "$tag" release-assets/* --repo "$GITHUB_REPOSITORY" --clobber
else
gh release create "$tag" release-assets/* --repo "$GITHUB_REPOSITORY" --title "$tag" --generate-notes
fi