-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (41 loc) · 1.03 KB
/
ci.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
name: CI
on:
push:
branches:
- main
- release-*
pull_request: {}
workflow_dispatch: {}
env:
GO_VERSION: '1.17'
DOCKER_BUILDX_VERSION: 'v0.4.2'
jobs:
ci:
runs-on: ubuntu-18.04
steps:
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
with:
version: ${{ env.DOCKER_BUILDX_VERSION }}
install: true
- name: Checkout
uses: actions/checkout@v2
- name: Fetch History
run: git fetch --prune --unshallow
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
# NOTE(hasheddan): make build currently includes unit tests target as a
# prerequisite.
- name: Build Binaries
run: make build
- name: Publish Artifacts to GitHub
uses: actions/upload-artifact@v2
with:
name: build
path: build/**