b56ca2fe45
Patch for https://github.com/containernetworking/plugins/pull/85 + Windows cni plugins are added (*) win-bridge (hostgw) (*) win-overlay (vxlan) + Windows netconf unit test + Fix appveyor config to run the test + Build release support for windows plugins Address comments From: - https://github.com/containernetworking/plugins/pull/85 - https://github.com/rakelkar/plugins/pull/5/commits/0049c64e3fb5527ab72b9ef1af25e3f6430f3309
14 lines
308 B
Bash
Executable File
14 lines
308 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
PLUGINS=$(cat plugins/windows_only.txt)
|
|
for d in $PLUGINS; do
|
|
if [ -d "$d" ]; then
|
|
plugin="$(basename "$d").exe"
|
|
|
|
echo " $plugin"
|
|
CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 \
|
|
$GO build -o "${PWD}/bin/$plugin" "$@" "$REPO_PATH"/$d
|
|
fi
|
|
done
|