Files
tx-sync/.gitea/workflows/build.yml
T
jamie 326f5ac751
tx-sync build / build (tx-sync-linux-amd64, amd64, linux) (push) Successful in 18s
tx-sync build / build (tx-sync-windows-amd64.exe, amd64, windows) (push) Successful in 1s
fix: 🐛 upload artifact stage
2026-03-21 01:07:05 +00:00

45 lines
973 B
YAML

name: tx-sync build
on:
push:
pull_request:
jobs:
build:
runs-on: build-htz-01
strategy:
fail-fast: false
matrix:
include:
- goos: linux
goarch: amd64
artifact: tx-sync-linux-amd64
- goos: windows
goarch: amd64
artifact: tx-sync-windows-amd64.exe
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Test
run: go test ./...
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOAMD64: v1
CGO_ENABLED: "0"
run: go build -trimpath -ldflags="-s -w" -o "${{ matrix.artifact }}" .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}