-
Notifications
You must be signed in to change notification settings - Fork 264
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: Marat Radchenko <[email protected]>
- Loading branch information
1 parent
5281188
commit 5d150bd
Showing
3 changed files
with
66 additions
and
52 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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: CI | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
env: | ||
GOPROXY: off | ||
GOFLAGS: -mod=vendor | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.15.0' | ||
# Run linter | ||
- run: Invoke-WebRequest "https://github.com/alecthomas/gometalinter/releases/download/v2.0.12/gometalinter-2.0.12-windows-amd64.zip" -OutFile "gometalinter.zip" | ||
- run: 7z x gometalinter.zip -y -oC:\ | ||
- run: gometalinter.exe --config .gometalinter.json ./... | ||
env: | ||
PATH: C:\gometalinter-2.0.12-windows-amd64;{{ env.PATH }} | ||
# Build | ||
- run: go build ./cmd/containerd-shim-runhcs-v1 | ||
- run: go build ./cmd/runhcs | ||
- run: go build ./cmd/tar2ext4 | ||
- run: go build ./cmd/wclayer | ||
- run: go build ./cmd/device-util | ||
- run: go build ./cmd/ncproxy | ||
- run: go build ./internal/tools/grantvmgroupaccess | ||
- run: go build ./internal/tools/uvmboot | ||
- run: go build ./internal/tools/zapdir | ||
# Run tests | ||
- run: go test -gcflags=all=-d=checkptr -v ./... -tags admin | ||
- run: go test -gcflags=all=-d=checkptr -v ./internal -tags admin | ||
working-directory: test | ||
- run: go test -gcflags=all=-d=checkptr -c ./containerd-shim-runhcs-v1/ -tags functional | ||
working-directory: test | ||
- run: go test -gcflags=all=-d=checkptr -c ./cri-containerd/ -tags functional | ||
working-directory: test | ||
- run: go test -gcflags=all=-d=checkptr -c ./functional/ -tags functional | ||
working-directory: test | ||
- run: go test -gcflags=all=-d=checkptr -c ./runhcs/ -tags functional | ||
working-directory: test | ||
- run: go build -o sample-logging-driver.exe ./cri-containerd/helpers/log.go | ||
working-directory: test | ||
# Collect artifacts | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: binaries | ||
path: | | ||
containerd-shim-runhcs-v1.exe | ||
runhcs.exe | ||
tar2ext4.exe | ||
device-util.exe | ||
wclayer.exe | ||
grantvmgroupaccess.exe | ||
uvmboot.exe | ||
zapdir.exe | ||
ncproxy.exe | ||
test/containerd-shim-runhcs-v1.test.exe | ||
test/cri-containerd.test.exe | ||
test/functional.test.exe | ||
test/runhcs.test.exe | ||
test/sample-logging-driver.exe |
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 was deleted.
Oops, something went wrong.