-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Keran Yang <[email protected]>
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,23 @@ jobs: | |
- name: Get dependencies | ||
run: go mod download | ||
|
||
- name: Install protoc | ||
run: | | ||
set -eux -o pipefail | ||
PROTOC_VERSION=3.19.4 | ||
PROTOC_ZIP=protoc-$PROTOC_VERSION-linux-x86_64.zip | ||
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/$PROTOC_ZIP | ||
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc | ||
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*' | ||
sudo chmod +x /usr/local/bin/protoc | ||
sudo find /usr/local/include -type f | xargs sudo chmod a+r | ||
sudo find /usr/local/include -type d | xargs sudo chmod a+rx | ||
rm -f $PROTOC_ZIP | ||
ls /usr/local/include/google/protobuf/ | ||
- name: Install mockgen | ||
run: | | ||
go install github.com/golang/mock/[email protected] | ||
- name: Test | ||
run: make all |
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