Fix repairs
This commit is contained in:
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@@ -35,6 +35,29 @@ jobs:
|
||||
|
||||
- name: Cross-compile with xgo
|
||||
uses: crazy-max/ghaction-xgo@v3
|
||||
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
with:
|
||||
xgo_version: latest
|
||||
go_version: 1.21
|
||||
pkg: cmd/zurg
|
||||
targets: linux/amd64
|
||||
dest: artifacts
|
||||
prefix: zurg
|
||||
v: false
|
||||
x: false
|
||||
race: false
|
||||
ldflags: >
|
||||
-s -w
|
||||
-X 'github.com/debridmediamanager/zurg/internal.BuiltAt=${{ steps.prep.outputs.built_at }}'
|
||||
-X 'github.com/debridmediamanager/zurg/internal.GoVersion=${{ steps.prep.outputs.go_version }}'
|
||||
-X 'github.com/debridmediamanager/zurg/internal.GitCommit=${{ steps.prep.outputs.git_commit }}'
|
||||
-X 'github.com/debridmediamanager/zurg/internal.Version=${{ steps.version.outputs.version }}'
|
||||
buildmode: default
|
||||
trimpath: true
|
||||
|
||||
- name: Cross-compile with xgo
|
||||
uses: crazy-max/ghaction-xgo@v3
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
with:
|
||||
xgo_version: latest
|
||||
go_version: 1.21
|
||||
|
||||
Reference in New Issue
Block a user