From 9f5a4ed78f39d0e728b9f1939aa1f7ffca3a97d4 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 1 Dec 2025 18:44:21 -0600 Subject: [PATCH] try github action to build with cgo --- .github/workflows/build-showbridge.yaml | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build-showbridge.yaml diff --git a/.github/workflows/build-showbridge.yaml b/.github/workflows/build-showbridge.yaml new file mode 100644 index 0000000..66707be --- /dev/null +++ b/.github/workflows/build-showbridge.yaml @@ -0,0 +1,46 @@ +name: Build Go Program + +on: + pull_request: + branches: + - main + push: + branches: + - main + +permissions: + contents: read + +jobs: + cgo-action: + strategy: + matrix: + targets: + - linux-amd64 + - linux-arm64 + - windows-amd64 + - darwin-amd64 + - darwin-arm64 + name: Build Go Program + runs-on: ubuntu-latest + + steps: + - name: Checkout + id: checkout + uses: actions/checkout@v5 + + - name: Setup Go + uses: actions/setup-go@v6 + 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