feat: initial commit
tx-sync build / build (tx-sync-linux-amd64, amd64, linux) (push) Failing after 50s
tx-sync build / build (tx-sync-windows-amd64.exe, amd64, windows) (push) Failing after 6s

This commit is contained in:
2026-03-21 01:02:52 +00:00
parent 69aa23bc89
commit 38dc37149c
10 changed files with 488 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
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@v4
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}