Skip to content

Commit 8710940

Browse files
author
John Howard
committed
Windows: Build shim binary from Microsoft/hcsshim
Signed-off-by: John Howard <[email protected]> This is part of a phased update to remove the existing Windows shim code from the containerd repo, and instead use the one from Microsoft/hcsshim.
1 parent e16e995 commit 8710940

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

.appveyor.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ environment:
1212
GOPATH: C:\gopath
1313
CGO_ENABLED: 1
1414
matrix:
15-
- GO_VERSION: 1.11
15+
- GO_VERSION: 1.12.1
1616

1717
before_build:
1818
- choco install -y mingw --version 5.3.0
@@ -22,10 +22,29 @@ before_build:
2222
- 7z x go%GO_VERSION%.windows-amd64.zip -oC:\ >nul
2323
- go version
2424
- choco install codecov
25+
# Clone hcsshim at the vendored version
26+
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:$PATH;
27+
rm -rf /c/gopath/src/github.com/Microsoft/hcsshim;
28+
git clone -q https://github.com/Microsoft/hcsshim.git /c/gopath/src/github.com/Microsoft/hcsshim;
29+
export HCSSHIM_VERSION=`grep Microsoft/hcsshim vendor.conf | awk '{print $2}'`;
30+
echo Using Microsoft/hcsshim $HCSSHIM_VERSION;
31+
pushd /c/gopath/src/github.com/Microsoft/hcsshim;
32+
git checkout $HCSSHIM_VERSION;
33+
popd"
2534
# Print host version. TODO: Remove this when containerd has a way to get host version
2635
- ps: $psversiontable
2736

2837
build_script:
38+
# Build containerd-shim-runhcs-v1.exe and runhcs.exe from Microsoft/hcsshim
39+
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:$PATH;
40+
export GOBIN=/c/gopath/src/github.com/Microsoft/hcsshim/bin;
41+
mkdir $GOBIN;
42+
pushd /c/gopath/src/github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1;
43+
go install;
44+
cd ../runhcs;
45+
go install;
46+
ls -al $GOBIN;
47+
popd"
2948
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:/c/gopath/bin:$PATH;
3049
script/setup/install-dev-tools;
3150
mingw32-make.exe check"

0 commit comments

Comments
 (0)