Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Running critest under windows using github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
  • Loading branch information
dims committed Apr 15, 2020
1 parent 7013a82 commit 5c31c75
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI
on: [push, pull_request]

jobs:
build-windows:
name: Build Windows amd64
runs-on: windows-latest
steps:
- name: Set up Go 1.13.10
uses: actions/setup-go@v1
with:
go-version: 1.13.10

- name: Checkout cri repo
uses: actions/checkout@v2
with:
path: ${{github.workspace}}\\src\\github.com\\containerd\\cri

- name: Clone containerd repo
run: |
bash.exe -c "GO111MODULE=off go get github.com/containerd/containerd"
- name: Configure Windows environment variables
run: |
echo "::set-env name=GOPATH::$env:GITHUB_WORKSPACE"
- name: Build
run: |
bash.exe -c "pwd && ./test/windows/test.sh"
working-directory: ${{github.workspace}}\\src\\github.com\\containerd\\cri

- name: Upload containerd log file
uses: actions/upload-artifact@v1
with:
name: cadvisor.log
path: c:\\_artifacts\\containerd.log
2 changes: 1 addition & 1 deletion hack/install/install-containerd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CHECKOUT_CONTAINERD=${CHECKOUT_CONTAINERD:-true}

if ${CHECKOUT_CONTAINERD}; then
# Create a temporary GOPATH for containerd installation.
GOPATH=$(mktemp -d /tmp/cri-install-containerd.XXXX)
export GOPATH=$(mktemp -d /tmp/cri-install-containerd.XXXX)
from-vendor CONTAINERD github.com/containerd/containerd
checkout_repo ${CONTAINERD_PKG} ${CONTAINERD_VERSION} ${CONTAINERD_REPO}
fi
Expand Down
6 changes: 0 additions & 6 deletions test/windows/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,10 @@ set -o nounset
set -o pipefail

export PATH="/c/Program Files/Containerd:$PATH"
REPO_TAR="${REPO_TAR:-"/c/cri.tar.gz"}"
FOCUS="${FOCUS:-"Conformance"}"
SKIP="${SKIP:-""}"
REPORT_DIR="${REPORT_DIR:-"/c/_artifacts"}"

repo="$GOPATH/src/github.com/containerd/cri"
mkdir -p "${repo}"
cd "${repo}"
tar -xzf "${REPO_TAR}"

make install.deps
make install -e BINDIR="/c/Program Files/Containerd"

Expand Down

0 comments on commit 5c31c75

Please sign in to comment.