-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (41 loc) · 1.23 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: Main CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: install clang-format
run: |
sudo apt-get -y install clang-format
- name: check clang format
run: |
clang-format -i hstream.proto && \
git diff-index --exit-code HEAD
# check-buf-lint:
# runs-on: ubuntu-latest
check-go-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: actions/setup-go@v3
with:
go-version: "1.17"
- name: install protobuf
run: |
sudo apt-get -y install protobuf-compiler libprotobuf-dev
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- run: |
protoc -I . -I /usr/include \
--go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
./hstream.proto