This commit is contained in:
Ben Sarmiento
2023-11-21 14:27:51 +01:00
parent 6feb352fb3
commit dd6742a16f

View File

@@ -15,13 +15,20 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install xgo
run: |
go install src.techknowlogick.com/xgo@latest
- name: Cross-compile with xgo - name: Cross-compile with xgo
run: | uses: crazy-max/ghaction-xgo@v3
xgo -env UID=1000,GID=1000 --targets=*/* ./cmd/zurg 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 - name: Prepare artifacts
run: | run: |