-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from kzys/gha
Run protobuild on GitHub Actions
- Loading branch information
Showing
9 changed files
with
93 additions
and
71 deletions.
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 |
---|---|---|
|
@@ -41,3 +41,24 @@ jobs: | |
working-directory: src/github.com/containerd/protobuild | ||
run: | | ||
go build . | ||
- name: Install protoc | ||
run: | | ||
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.5.0/protoc-3.5.0-linux-x86_64.zip | ||
sudo unzip -x protoc-3.5.0-linux-x86_64.zip -d /usr/local | ||
sudo chmod -R go+rX /usr/local/include | ||
sudo chmod go+x /usr/local/bin/protoc | ||
# Both google.golang.org/protobuf/cmd/protoc-gen-go and github.com/golang/protobuf/protoc-gen-go > 1.4.0 don't | ||
# support import_path. So this step has to use 1.3.x here. | ||
- name: Install protoc-gen-go | ||
run: | | ||
go install github.com/golang/protobuf/[email protected] | ||
- name: Run protobuild to see all committed auto-generated files can be generated as is | ||
working-directory: src/github.com/containerd/protobuild | ||
run: | | ||
find examples/ -name '*.pb.*' | xargs rm | ||
export PATH=$(go env GOBIN):$PATH | ||
go list ./... | grep -v vendor | xargs ./protobuild | ||
git diff --exit-code |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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