Skip to content

Update go.yml

Update go.yml #8

Workflow file for this run

name: main
on:
push:
# Only build branches on push, tags will be handled by 'release' job.
branches:
- '**'
pull_request:
workflow_dispatch:
release:
types: [published]
jobs:
build:
strategy:
matrix:
include:
- os: linux
arch: arm64
- os: linux
arch: amd64
- os: windows
arch: amd64
- os: freebsd
arch: amd64
- os: openbsd
arch: amd64
name: ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.19"
- name: Build
run: go build -ldflags "-s -w" -o . ./...
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0
- uses: actions/upload-artifact@v4
with:
name: "qtv-${{ matrix.os }}-${{ matrix.arch }}"
path: |
qtv-go*