diff --git a/.github/workflows/build-showbridge.yaml b/.github/workflows/build-showbridge.yaml index 66707be..a25eae7 100644 --- a/.github/workflows/build-showbridge.yaml +++ b/.github/workflows/build-showbridge.yaml @@ -12,35 +12,22 @@ permissions: contents: read jobs: - cgo-action: - strategy: - matrix: - targets: - - linux-amd64 - - linux-arm64 - - windows-amd64 - - darwin-amd64 - - darwin-arm64 - name: Build Go Program + xgo: runs-on: ubuntu-latest - steps: - name: Checkout - id: checkout - uses: actions/checkout@v5 - - - name: Setup Go - uses: actions/setup-go@v6 + uses: actions/checkout@v6 + - name: Build + uses: crazy-max/ghaction-xgo@v3 with: - go-version: '1.25.3' - - - name: Build go program - id: cgo-action - uses: go-cross/cgo-actions@v1 - with: - dir: './cmd/showbridge' - targets: ${{ matrix.targets }} - - - name: Print Output - id: output - run: echo "${{ steps.cgo-action.outputs.files }}" \ No newline at end of file + xgo_version: latest + go_version: 1.25.3 + dest: build + prefix: 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 \ No newline at end of file