Skip to content

Merge pull request #16661 from SimonRichardson/bootstrap-agent-tools #2696

Merge pull request #16661 from SimonRichardson/bootstrap-agent-tools

Merge pull request #16661 from SimonRichardson/bootstrap-agent-tools #2696

Workflow file for this run

name: "Build"
on:
push:
branches: [2.9, 3.1, 3.2, 3.3, 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@v4
with:
go-version-file: 'go.mod'
cache: true
- name: "Build"
run: |
GOOS=${{ matrix.platform.os }} GOARCH=${{ matrix.platform.arch }} make go-build