name: Go Build Test on: pull_request: branches: - main - master permissions: contents: read jobs: build: name: Build (${{ matrix.goos }}, ${{ matrix.goarch }}) strategy: fail-fast: false matrix: goos: [linux, windows, darwin, freebsd] goarch: [amd64, arm64, arm] include: - goos: js goarch: wasm exclude: - goos: darwin goarch: arm runs-on: ubuntu-latest steps: - name: Checkout Source uses: https://git.quad4.io/actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - name: Set up Go uses: https://git.quad4.io/actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 with: go-version: '1.25' - name: Setup Task uses: https://git.quad4.io/actions/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 with: version: '3.46.3' - name: Build env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} GOARM: ${{ matrix.goarch == 'arm' && '6' || '' }} CGO_ENABLED: '0' run: | if [ "${{ matrix.goos }}" = "js" ] && [ "${{ matrix.goarch }}" = "wasm" ]; then task build-wasm else task build fi