-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Build i686 and aarch64 binaries on release
Signed-off-by: Timo Reichl <[email protected]>
- Loading branch information
Showing
3 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
export CGO_ENABLED=0 | ||
export GOOS=linux | ||
|
||
BUILD_ARCHITECTURES="amd64/x86_64 386/i686 arm64/aarch64" | ||
|
||
go get | ||
|
||
for build_arch in ${BUILD_ARCHITECTURES}; do | ||
export GOARCH=$(echo "${build_arch}" | cut -d '/' -f 1) | ||
void_arch=$(echo "${build_arch}" | cut -d '/' -f 2) | ||
|
||
go build -ldflags="-extldflags=-static" -o bin/xdeb-install-linux-${void_arch} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters