Skip to content

Commit

Permalink
When in Rome, do as the Romans do
Browse files Browse the repository at this point in the history
Signed-off-by: Kazuyoshi Kato <[email protected]>
  • Loading branch information
kzys committed Feb 28, 2022
1 parent 593f21e commit b576476
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ env:
GOPROXY: off

jobs:
proto:
# TODO: use Windows after merginig https://github.com/containerd/protobuild/pull/51.
runs-on: 'ubuntu-20.04'
protos:
runs-on: 'windows-2019'
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -20,29 +19,29 @@ jobs:
go-version: '^1.15.0'

- name: Install protoc-gen-gogoctrd
shell: bash
shell: powershell
run: |
git clone --depth 1 https://github.com/containerd/containerd.git -b v1.6.0
cd containerd/cmd/protoc-gen-gogoctrd
go build
mkdir $GOPATH/bin
mv protoc-gen-gogoctrd $GOPATH/bin
mv protoc-gen-gogoctrd.exe $GOPATH/bin
env:
GOPATH: ${{ github.workspace }}

- name: Install protoc
shell: bash
shell: powershell
run: |
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip
unzip -x protoc-3.19.4-linux-x86_64.zip
Invoke-WebRequest -OutFile protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-win32.zip
Expand-Archive -Path protoc.zip
mv include src/github.com/Microsoft/hcsshim/protobuf
env:
GOPATH: ${{ github.workspace }}

- name: Run Protobuild
shell: bash
shell: powershell
run: |
go install github.com/containerd/protobuild@7e5ee24bc1f70e9e289fef15e2631eb3491320bf
go install github.com/containerd/protobuild@f9731edc8a06ed5d5f7dc7c6c0304cd34af13f21
cd src/github.com/Microsoft/hcsshim
PATH=$GOPATH/bin:$PATH protobuild $(go list ./... | grep -v /vendor/)
Expand Down

0 comments on commit b576476

Please sign in to comment.