add cross compile support for arm64 to amd64 (#888)
This commit is contained in:
parent
68cc2a0eee
commit
a99f7aa203
|
@ -8,6 +8,7 @@ elif [ "$TARGETPLATFORM" == "linux/arm/v6" ] || [ "$TARGETPLATFORM" == "linux/ar
|
||||||
dpkg --add-architecture armhf
|
dpkg --add-architecture armhf
|
||||||
DEBIAN_ARCH='armhf'
|
DEBIAN_ARCH='armhf'
|
||||||
else
|
else
|
||||||
|
dpkg --add-architecture amd64
|
||||||
DEBIAN_ARCH='amd64'
|
DEBIAN_ARCH='amd64'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -22,6 +23,10 @@ elif [ "$DEBIAN_ARCH" == "armhf" ]; then
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
g++-arm-linux-gnueabihf \
|
g++-arm-linux-gnueabihf \
|
||||||
libc6-dev-armhf-cross
|
libc6-dev-armhf-cross
|
||||||
|
else
|
||||||
|
apt-get install -y \
|
||||||
|
g++-x86-64-linux-gnu \
|
||||||
|
libc6-dev-amd64-cross
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install Golang
|
# Install Golang
|
||||||
|
|
Loading…
Reference in New Issue