diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbddf1a7bb..2b3fcb8506 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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/)