更新编译脚本
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
c8a5a5a4d0
commit
daccb328fc
2
bulid.sh
2
bulid.sh
|
@ -45,6 +45,6 @@ do
|
||||||
echo "Start compiling the system:${array[0]} architecture:${array[1]}"
|
echo "Start compiling the system:${array[0]} architecture:${array[1]}"
|
||||||
# echo "CGO_ENABLED=0 GOOS=${array[0]} GOARCH=${array[1]} go build -o /root/web/${array[0]}_${array[1]}_main${extension}"
|
# echo "CGO_ENABLED=0 GOOS=${array[0]} GOARCH=${array[1]} go build -o /root/web/${array[0]}_${array[1]}_main${extension}"
|
||||||
# CGO_ENABLED=0 GOOS=${array[0]} GOARCH=${array[1]} go build -o /root/web/${array[0]}_${array[1]}_main${extension}
|
# CGO_ENABLED=0 GOOS=${array[0]} GOARCH=${array[1]} go build -o /root/web/${array[0]}_${array[1]}_main${extension}
|
||||||
CGO_ENABLED=1 -ldflags="-w -s" GOOS=${array[0]} GOARCH=${array[1]} go build -o ${array[0]}_${array[1]}_main${extension}
|
CGO_ENABLED=1 "-linkmode external -extldflags '-static' -s -w" GOOS=${array[0]} GOARCH=${array[1]} go build -o ${array[0]}_${array[1]}_main${extension}
|
||||||
cp ${array[0]}_${array[1]}_main${extension} /root/web/
|
cp ${array[0]}_${array[1]}_main${extension} /root/web/
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue