feat: build linux 386

relates to #4397
This commit is contained in:
Jan De Dobbeleer 2023-10-29 15:59:10 +01:00
parent e5547a8c85
commit f40a7bbe8d
No known key found for this signature in database
GPG key ID: D9FE64756B9A61E6
2 changed files with 2 additions and 3 deletions

View file

@ -31,8 +31,6 @@ builds:
ignore:
- goos: darwin
goarch: "386"
- goos: linux
goarch: "386"
- goos: darwin
goarch: arm
- goos: windows

View file

@ -39,7 +39,7 @@ while getopts ":hd:" option; do
esac
done
SUPPORTED_TARGETS="linux-amd64 linux-arm linux-arm64 darwin-amd64 darwin-arm64"
SUPPORTED_TARGETS="linux-386 linux-amd64 linux-arm linux-arm64 darwin-amd64 darwin-arm64"
validate_dependency() {
if ! command -v $1 >/dev/null; then
@ -171,6 +171,7 @@ detect_arch() {
armv*) arch="arm" ;;
arm64) arch="arm64" ;;
aarch64) arch="arm64" ;;
i686) arch="386" ;;
esac
if [ "${arch}" = "arm64" ] && [ "$(getconf LONG_BIT)" -eq 32 ]; then