mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
try different action
This commit is contained in:
43
.github/workflows/build-showbridge.yaml
vendored
43
.github/workflows/build-showbridge.yaml
vendored
@@ -12,35 +12,22 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cgo-action:
|
xgo:
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
targets:
|
|
||||||
- linux-amd64
|
|
||||||
- linux-arm64
|
|
||||||
- windows-amd64
|
|
||||||
- darwin-amd64
|
|
||||||
- darwin-arm64
|
|
||||||
name: Build Go Program
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
id: checkout
|
uses: actions/checkout@v6
|
||||||
uses: actions/checkout@v5
|
- name: Build
|
||||||
|
uses: crazy-max/ghaction-xgo@v3
|
||||||
- name: Setup Go
|
|
||||||
uses: actions/setup-go@v6
|
|
||||||
with:
|
with:
|
||||||
go-version: '1.25.3'
|
xgo_version: latest
|
||||||
|
go_version: 1.25.3
|
||||||
- name: Build go program
|
dest: build
|
||||||
id: cgo-action
|
prefix: showbridge
|
||||||
uses: go-cross/cgo-actions@v1
|
targets: windows/amd64,linux/amd64,linux/arm64,darwin/arm64,darwin/amd64
|
||||||
with:
|
v: true
|
||||||
dir: './cmd/showbridge'
|
x: false
|
||||||
targets: ${{ matrix.targets }}
|
race: false
|
||||||
|
ldflags: -s -w
|
||||||
- name: Print Output
|
buildmode: default
|
||||||
id: output
|
trimpath: true
|
||||||
run: echo "${{ steps.cgo-action.outputs.files }}"
|
|
||||||
Reference in New Issue
Block a user