Skip to content

feat(prompts): 统一 LLM 输出协议为 YAML,移除 JSON 依赖 #3

feat(prompts): 统一 LLM 输出协议为 YAML,移除 JSON 依赖

feat(prompts): 统一 LLM 输出协议为 YAML,移除 JSON 依赖 #3

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- goos: linux
goarch: amd64
asset_name: kontext_linux_amd64
- goos: linux
goarch: arm64
asset_name: kontext_linux_arm64
- goos: darwin
goarch: amd64
asset_name: kontext_darwin_amd64
- goos: darwin
goarch: arm64
asset_name: kontext_darwin_arm64
- goos: windows
goarch: amd64
asset_name: kontext_windows_amd64.exe
- goos: windows
goarch: arm64
asset_name: kontext_windows_arm64.exe
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run tests
run: go test ./...
- name: Build binary
shell: bash
run: |
mkdir -p dist
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=0 \
go build -o dist/${{ matrix.asset_name }} .
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.asset_name }}
path: dist/${{ matrix.asset_name }}
if-no-files-found: error
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: dist/*