-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 913 Bytes
/
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
name: "Build"
on:
workflow_dispatch:
workflow_call:
permissions:
contents: read
jobs:
build:
name: Build
runs-on: [self-hosted, linux, "${{ matrix.platform.host_arch }}", aws, xxlarge]
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: darwin, arch: arm64, host_arch: arm64 }
steps:
- name: "Checkout"
uses: actions/checkout@v4
- 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