From dd6742a16f56c789cf6c5b6d6f5275ca295630cd Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Tue, 21 Nov 2023 14:27:51 +0100 Subject: [PATCH] Use gha --- .github/workflows/build.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c0721c..134f533 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,13 +15,20 @@ jobs: - name: Check out code uses: actions/checkout@v4 - - name: Install xgo - run: | - go install src.techknowlogick.com/xgo@latest - - name: Cross-compile with xgo - run: | - xgo -env UID=1000,GID=1000 --targets=*/* ./cmd/zurg + uses: crazy-max/ghaction-xgo@v3 + with: + xgo_version: latest + go_version: 1.21 + dest: build + prefix: myapp + targets: windows/amd64,linux/amd64,linux/arm64,darwin/arm64 + v: true + x: false + race: false + ldflags: -s -w + buildmode: default + trimpath: true - name: Prepare artifacts run: |