-
Notifications
You must be signed in to change notification settings - Fork 2.3k
53 lines (45 loc) · 1.07 KB
/
ci-build-binaries.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
49
50
51
52
53
name: Build binaries
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
build-binaries:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- name: linux
task: build-binaries-linux
- name: windows
task: build-binaries-windows
- name: osx
task: build-binaries-darwin
- name: system/390
task: build-binaries-s390x
- name: arm
task: build-binaries-arm64
- name: powerpc
task: build-binaries-ppc64le
name: build binaries for ${{ matrix.platform.name }}
steps:
- uses: actions/checkout@v2.4.0
with:
submodules: true
- name: Fetch git tags
run: |
git fetch --prune --unshallow --tags
- uses: actions/setup-go@v2
with:
go-version: ^1.17
- name: Export BRANCH variable
uses: ./.github/actions/setup-branch
- name: Install tools
run: make install-ci
- name: Build binaries
run: make ${{ matrix.platform.task }}