-
Notifications
You must be signed in to change notification settings - Fork 239
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 #220 from kzys/bye-gogo
Use google.golang.org/protobuf instead of github.com/gogo/protobuf
- Loading branch information
Showing
11 changed files
with
2,819 additions
and
9,653 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 |
---|---|---|
|
@@ -113,3 +113,42 @@ jobs: | |
sudo -E PATH=$PATH GOPATH=$GOPATH \ | ||
$(command -v go) test -v -race -coverprofile=coverage.txt -covermode=atomic ./... | ||
working-directory: src/github.com/containerd/cgroups | ||
|
||
proto: | ||
name: Compare auto-generated Go files | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.19.x' | ||
|
||
- name: Set env | ||
shell: bash | ||
run: | | ||
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV | ||
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
- name: Checkout cgroups | ||
uses: actions/checkout@v3 | ||
with: | ||
path: src/github.com/containerd/cgroups | ||
|
||
- name: Install protoc | ||
run: | | ||
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip | ||
# /usr/local is not writable from GitHub Actions' user | ||
sudo unzip protoc-21.5-linux-x86_64.zip -d /usr/local | ||
- name: Install proto-related tools for Go | ||
run: | | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install github.com/containerd/[email protected] | ||
go install github.com/containerd/protobuild/cmd/[email protected] | ||
- name: Compare auto-generated Go files | ||
run: | | ||
make proto | ||
git diff --exit-code | ||
working-directory: src/github.com/containerd/cgroups |
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
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
Oops, something went wrong.