mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
use straight go action
This commit is contained in:
25
.github/workflows/build-showbridge.yaml
vendored
25
.github/workflows/build-showbridge.yaml
vendored
@@ -12,23 +12,14 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
xgo:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v6
|
||||||
uses: actions/checkout@v6
|
- uses: actions/setup-go@v6
|
||||||
- name: Build
|
|
||||||
uses: crazy-max/ghaction-xgo@v3
|
|
||||||
with:
|
with:
|
||||||
xgo_version: latest
|
go-version-file: 'go.mod'
|
||||||
go_version: 1.24
|
- name: mod tidy
|
||||||
dest: build
|
run: go mod tidy
|
||||||
pkg: cmd/showbridge
|
- name: build
|
||||||
prefix: showbridge
|
run: CGO_ENABLED=1 go build -v -o dist/showbridge-linux ./cmd/showbridge
|
||||||
targets: windows/amd64,linux/amd64,linux/arm64,darwin/arm64,darwin/amd64
|
|
||||||
v: true
|
|
||||||
x: false
|
|
||||||
race: false
|
|
||||||
ldflags: -s -w
|
|
||||||
buildmode: default
|
|
||||||
trimpath: true
|
|
||||||
Reference in New Issue
Block a user