forked from weaveworks/ignite
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.21 KB
/
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
name: Build binaries
on:
workflow_dispatch:
# Enable manual trigger of this action.
inputs:
GOARCH:
description: GOARCH build environment variable.
default: amd64
required: true
repository:
description: Git repository to checkout for building.
default: weaveworks/ignite
required: true
ref:
description: Git branch, tag or SHA to checkout.
default: main
required: true
env:
GOARCH: ${{ github.event.inputs.GOARCH }}
jobs:
build-binaries:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: ${{ github.event.inputs.repository }}
ref: ${{ github.event.inputs.ref }}
- uses: actions/setup-go@v2
with:
go-version: '1.21.0'
- name: Build binaries for ${{ env.GOARCH }}
run: make ignite ignite-spawn ignited bin/${{ env.GOARCH }}/Dockerfile GO_MAKE_TARGET=local GOARCH=${{ env.GOARCH }}
- uses: actions/upload-artifact@v2
with:
name: ${{ env.GOARCH }} binaries
path: |
bin/${{ env.GOARCH }}/ignite
bin/${{ env.GOARCH }}/ignited
bin/${{ env.GOARCH }}/ignite-spawn