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: |