-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (49 loc) · 1.16 KB
/
go.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
57
58
59
name: Go
on:
pull_request:
push:
branches:
- master
jobs:
rust:
name: Go
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go-version:
- 1.15.10
os:
- ubuntu-latest
- windows-latest
# - macos-latest
env:
GO111MODULE: on
GOPATH: ${{ github.workspace }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Go toolchain
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install Protoc
uses: arduino/setup-protoc@master
with:
version: '3.x'
- name: chmod Protoc
shell: bash
run: "chmod +x `which protoc`"
- name: Restore dependencies from cache
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
shell: bash
run: go get -u github.com/golang/protobuf/protoc-gen-go && go get -u google.golang.org/grpc
- name: Build
shell: bash
run: make