add cache store stats (#96) #255
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.21" | |
- 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 |