Files
patterm/.gitea/workflows/release.yml
T
harry fd9c19e5c2
release / build-linux-amd64 (push) Has been cancelled
Fix release CI: upgrade mlugg/setup-zig to v2 and cut 0.0.3
`mlugg/setup-zig@v1` is deprecated and only knows the pre-0.14
tarball name (`zig-linux-x86_64-<ver>.tar.xz`), so every mirror —
and the official ziglang.org/builds — returned 404 for Zig 0.15.2
on both the v0.0.1 and v0.0.2 release runs. v2 uses the new
`zig-x86_64-linux-<ver>.tar.xz` layout that Zig switched to in
0.14+.

Also rolls the existing CHANGELOG `[Unreleased]` work into a
dated `[0.0.3]` section and adds the CI fix to its Fixed list.
2026-05-15 19:14:21 +01:00

42 lines
896 B
YAML

name: release
on:
push:
tags:
- 'v*'
jobs:
build-linux-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- uses: mlugg/setup-zig@v2
with:
version: 0.15.2
- name: Build libghostty-vt
run: make deps
- name: Build patterm
env:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 1
run: |
mkdir -p dist
go build -trimpath \
-ldflags="-s -w -X main.version=${{ github.ref_name }}" \
-o dist/patterm-${{ github.ref_name }}-linux-amd64 \
./cmd/patterm
- name: Attach binary to release
uses: akkuman/gitea-release-action@v1
with:
files: dist/patterm-${{ github.ref_name }}-linux-amd64