Use gha
This commit is contained in:
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@@ -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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user