From 7d2c7d2ba68e5319fc6189524efeb76f36778933 Mon Sep 17 00:00:00 2001 From: Vasyl Gello Date: Fri, 19 Jul 2024 12:16:03 +0300 Subject: [PATCH] WIP Signed-off-by: Vasyl Gello --- .github/workflows/trunk.yml | 76 ++++++++++++++++++------------------- build | 1 + 2 files changed, 39 insertions(+), 38 deletions(-) diff --git a/.github/workflows/trunk.yml b/.github/workflows/trunk.yml index a9756d7..f521897 100644 --- a/.github/workflows/trunk.yml +++ b/.github/workflows/trunk.yml @@ -30,44 +30,44 @@ jobs: - name: Build static executables run: | - GOOS=windows GOARCH=arm GOARM=7 ./build -o yggstack-windows-armv7.exe - GOOS=windows GOARCH=arm64 ./build -o yggstack-windows-arm64.exe - GOOS=windows GOARCH=386 ./build -o yggstack-windows-i386.exe - GOOS=windows GOARCH=amd64 ./build -o yggstack-windows-amd64.exe - GOOS=linux GOARCH=386 ./build -o yggstack-linux-i386 - GOOS=linux GOARCH=amd64 ./build -o yggstack-linux-amd64 - GOOS=linux GOARCH=arm GOARM=6 ./build -o yggstack-linux-armv6 - GOOS=linux GOARCH=arm GOARM=7 ./build -o yggstack-linux-armv7 - GOOS=linux GOARCH=arm64 ./build -o yggstack-linux-arm64 - GOOS=linux GOARCH=mips GOMIPS=softfloat ./build -o yggstack-linux-mips-sf - GOOS=linux GOARCH=mipsle GOMIPS=softfloat ./build -o yggstack-linux-mipsle-sf - GOOS=linux GOARCH=mips64 ./build -o yggstack-linux-mips64 - GOOS=linux GOARCH=mips64le ./build -o yggstack-linux-mips64le - GOOS=linux GOARCH=ppc64 ./build -o yggstack-linux-ppc64 - GOOS=linux GOARCH=ppc64le ./build -o yggstack-linux-ppc64le - GOOS=linux GOARCH=riscv64 ./build -o yggstack-linux-riscv64 - GOOS=linux GOARCH=s390x ./build -o yggstack-linux-s390x - GOOS=darwin GOARCH=arm64 ./build -o yggstack-darwin-arm64 - GOOS=darwin GOARCH=amd64 ./build -o yggstack-darwin-amd64 - GOOS=freebsd GOARCH=arm64 ./build -o yggstack-freebsd-arm64 - GOOS=freebsd GOARCH=amd64 ./build -o yggstack-freebsd-amd64 - GOOS=freebsd GOARCH=arm GOARM=6 ./build -o yggstack-freebsd-armv6 - GOOS=freebsd GOARCH=arm GOARM=7 ./build -o yggstack-freebsd-armv7 - GOOS=freebsd GOARCH=386 ./build -o yggstack-freebsd-i386 - GOOS=openbsd GOARCH=arm64 ./build -o yggstack-openbsd-arm64 - GOOS=openbsd GOARCH=amd64 ./build -o yggstack-openbsd-amd64 - GOOS=openbsd GOARCH=arm GOARM=6 ./build -o yggstack-openbsd-armv6 - GOOS=openbsd GOARCH=arm GOARM=7 ./build -o yggstack-openbsd-armv7 - GOOS=openbsd GOARCH=386 ./build -o yggstack-openbsd-i386 - GOOS=netbsd GOARCH=arm64 ./build -o yggstack-netbsd-arm64 - GOOS=netbsd GOARCH=amd64 ./build -o yggstack-netbsd-amd64 - GOOS=netbsd GOARCH=arm GOARM=6 ./build -o yggstack-netbsd-armv6 - GOOS=netbsd GOARCH=arm GOARM=7 ./build -o yggstack-netbsd-armv7 - GOOS=netbsd GOARCH=386 ./build -o yggstack-netbsd-i386 - CC="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" GOOS=android GOARCH=arm64 ./build -o yggstack-android-arm64 - CC="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang" GOOS=android GOARCH=amd64 ./build -o yggstack-android-amd64 - CC="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang" GOOS=android GOARCH=arm GOARM=7 ./build -o yggstack-android-armv7 - CC="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang" GOOS=android GOARCH=386 ./build -o yggstack-android-i386 + GOOS=windows GOARCH=arm GOARM=7 ./build -s -o yggstack-windows-armv7.exe + GOOS=windows GOARCH=arm64 ./build -s -o yggstack-windows-arm64.exe + GOOS=windows GOARCH=386 ./build -s -o yggstack-windows-i386.exe + GOOS=windows GOARCH=amd64 ./build -s -o yggstack-windows-amd64.exe + GOOS=linux GOARCH=386 ./build -s -o yggstack-linux-i386 + GOOS=linux GOARCH=amd64 ./build -s -o yggstack-linux-amd64 + GOOS=linux GOARCH=arm GOARM=6 ./build -s -o yggstack-linux-armv6 + GOOS=linux GOARCH=arm GOARM=7 ./build -s -o yggstack-linux-armv7 + GOOS=linux GOARCH=arm64 ./build -s -o yggstack-linux-arm64 + GOOS=linux GOARCH=mips GOMIPS=softfloat ./build -s -o yggstack-linux-mips-sf + GOOS=linux GOARCH=mipsle GOMIPS=softfloat ./build -s -o yggstack-linux-mipsle-sf + GOOS=linux GOARCH=mips64 ./build -s -o yggstack-linux-mips64 + GOOS=linux GOARCH=mips64le ./build -s -o yggstack-linux-mips64le + GOOS=linux GOARCH=ppc64 ./build -s -o yggstack-linux-ppc64 + GOOS=linux GOARCH=ppc64le ./build -s -o yggstack-linux-ppc64le + GOOS=linux GOARCH=riscv64 ./build -s -o yggstack-linux-riscv64 + GOOS=linux GOARCH=s390x ./build -s -o yggstack-linux-s390x + GOOS=darwin GOARCH=arm64 ./build -s -o yggstack-darwin-arm64 + GOOS=darwin GOARCH=amd64 ./build -s -o yggstack-darwin-amd64 + GOOS=freebsd GOARCH=arm64 ./build -s -o yggstack-freebsd-arm64 + GOOS=freebsd GOARCH=amd64 ./build -s -o yggstack-freebsd-amd64 + GOOS=freebsd GOARCH=arm GOARM=6 ./build -s -o yggstack-freebsd-armv6 + GOOS=freebsd GOARCH=arm GOARM=7 ./build -s -o yggstack-freebsd-armv7 + GOOS=freebsd GOARCH=386 ./build -s -o yggstack-freebsd-i386 + GOOS=openbsd GOARCH=arm64 ./build -s -o yggstack-s -openbsd-arm64 + GOOS=openbsd GOARCH=amd64 ./build -s -o yggstack-s -openbsd-amd64 + GOOS=openbsd GOARCH=arm GOARM=6 ./build -s -o yggstack-s -openbsd-armv6 + GOOS=openbsd GOARCH=arm GOARM=7 ./build -s -o yggstack-s -openbsd-armv7 + GOOS=openbsd GOARCH=386 ./build -s -o yggstack-s -openbsd-i386 + GOOS=netbsd GOARCH=arm64 ./build -s -o yggstack-netbsd-arm64 + GOOS=netbsd GOARCH=amd64 ./build -s -o yggstack-netbsd-amd64 + GOOS=netbsd GOARCH=arm GOARM=6 ./build -s -o yggstack-netbsd-armv6 + GOOS=netbsd GOARCH=arm GOARM=7 ./build -s -o yggstack-netbsd-armv7 + GOOS=netbsd GOARCH=386 ./build -s -o yggstack-netbsd-i386 + CC="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" GOOS=android GOARCH=arm64 ./build -s -o yggstack-android-arm64 + CC="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang" GOOS=android GOARCH=amd64 ./build -s -o yggstack-android-amd64 + CC="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang" GOOS=android GOARCH=arm GOARM=7 ./build -s -o yggstack-android-armv7 + CC="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang" GOOS=android GOARCH=386 ./build -s -o yggstack-android-i386 #GOOS=ios GOARCH=arm64 CC=$(go env GOROOT)/misc/ios/clangwrap.sh ./build -o yggstack-ios-arm64 #GOOS=ios GOARCH=amd64 CC=$(go env GOROOT)/misc/ios/clangwrap.sh ./build -o yggstack-ios-amd64 diff --git a/build b/build index 4a63f46..27aa61b 100755 --- a/build +++ b/build @@ -21,6 +21,7 @@ do r) ARGS="$ARGS -race";; o) ARGS="$ARGS -o $OPTARG";; p) ARGS="$ARGS -buildmode=pie";; + s) ARGS="$ARGS -tags netgo,osusergo";; esac done