-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.25 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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