Merge pull request #17639 from barrettj12/cmd-doc-name #2910
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
on: | |
push: | |
branches: [2.*, 3.*, 4.*, main] | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- '.github/workflows/build.yml' | |
- 'scripts/dqlite/**' | |
- 'Makefile' | |
- 'make_functions.sh' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
Build: | |
name: Build | |
runs-on: [self-hosted, linux, "${{ matrix.platform.host_arch }}", aws, large] | |
if: github.event.pull_request.draft == false | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- { os: linux, arch: amd64, host_arch: x64 } | |
- { os: linux, arch: arm64, host_arch: arm64 } | |
# Until we get rid of musl, lets just disable these to save build time. | |
# - { os: linux, arch: s390x } | |
# - { os: linux, arch: ppc64le } | |
- { os: windows, arch: amd64, host_arch: arm64 } | |
- { os: darwin, arch: arm64, host_arch: arm64 } | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Set up Go" | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: "Build" | |
run: | | |
GOOS=${{ matrix.platform.os }} GOARCH=${{ matrix.platform.arch }} make go-build |