-
Notifications
You must be signed in to change notification settings - Fork 41
56 lines (46 loc) · 1.11 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
49
50
51
52
53
54
55
56
name: build main branch
on:
push:
branches: [ main ]
paths:
- "*.go"
pull_request:
branches: [ main ]
paths:
- "*.go"
jobs:
build-win:
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: '^1.17'
- name: Install make
run: choco install make
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
- name: Install proto-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Build
run: make
build-unix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: '^1.17'
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
- name: Install proto-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Build
run: make