-
Notifications
You must be signed in to change notification settings - Fork 240
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: Kazuyoshi Kato <[email protected]>
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 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 |
---|---|---|
|
@@ -123,3 +123,43 @@ jobs: | |
|
||
- name: Run cgroups v2 tests | ||
run: vagrant ssh default -- sudo -i /test.sh | ||
|
||
protos: | ||
name: Generate .pb.go files from .proto files | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: src/github.com/containerd/cgroups | ||
|
||
- name: Install protoc | ||
run: | | ||
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-linux-x86_64.zip | ||
sudo unzip -x protoc-3.11.4-linux-x86_64.zip -d /usr/local | ||
sudo chmod -R go+rX /usr/local/include | ||
sudo chmod go+x /usr/local/bin/protoc | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17.x' | ||
|
||
- name: Install protoc-gen-go | ||
run: | | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
- name: Install protobuild and go-fix-acronym | ||
run: | | ||
go install github.com/containerd/protobuild@67235b658dbf6caa5cbe2fa4c04ed49b5f31d3bd | ||
go install github.com/containerd/protobuild/cmd/go-fix-acronym@67235b658dbf6caa5cbe2fa4c04ed49b5f31d3bd | ||
working-directory: src/github.com/containerd/cgroups | ||
|
||
- name: make proto | ||
run: | | ||
rm $(find . -name '*.pb.go') | ||
PATH=$GOPATH/bin:$PATH make proto | ||
git diff --exit-code | ||
env: | ||
GOPATH: ${{ github.workspace }} | ||
working-directory: src/github.com/containerd/cgroups |