Skip to content

test: 38 tests — full coverage across all packages #1

test: 38 tests — full coverage across all packages

test: 38 tests — full coverage across all packages #1

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
name: Build & Release
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: darwin
arch: amd64
- os: darwin
arch: arm64
- os: linux
arch: amd64
- os: linux
arch: arm64
- os: windows
arch: amd64
ext: .exe
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: true
- name: Build
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0
run: |
BINARY="yaad_${{ matrix.os }}_${{ matrix.arch }}${{ matrix.ext }}"
go build -ldflags="-s -w -X main.version=${{ github.ref_name }}" \
-o "dist/${BINARY}" ./cmd/yaad
- name: Upload to Release
uses: softprops/action-gh-release@v2
with:
files: dist/*
generate_release_notes: true