Skip to content

Workflow

Workflow #29

Workflow file for this run

name: build
on:
push:
tags:
- '*'
jobs:
xgo:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: crazy-max/ghaction-xgo@v3
with:
xgo_version: latest
go_version: '1.23'
dest: build
prefix: ggt
targets: windows/amd64,linux/amd64,linux/arm64,darwin/arm64
v: true
x: false
race: false
ldflags: -s -w
buildmode: default
trimpath: true
pkg: cmd/main.go
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: build/ggt-${{ matrix.os }}-${{ matrix.arch }}*