Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): proper arch label #4527

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions script/cross_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ shift
build_flags="$*"

cross_compile () {
local label=$1
local label="$1-$2-$3"
local extension=""
export GOOS=$2
export GOARCH=$3
Expand All @@ -57,11 +57,11 @@ cross_compile () {
pushd . && cd ${targetdir} && tar -zcvf ../../${label}.tar.gz $(ls -A) && popd
}

cross_compile ${basename}-${version}-linux-64bit linux amd64
cross_compile ${basename}-${version}-linux-64bit linux arm64
cross_compile ${basename}-${version}-mac-64bit darwin amd64
cross_compile ${basename}-${version}-mac-arm64bit darwin arm64
cross_compile ${basename}-${version}-windows-64bit windows amd64
cross_compile ${basename}-${version} linux amd64
cross_compile ${basename}-${version} linux arm64
cross_compile ${basename}-${version} darwin amd64
cross_compile ${basename}-${version} darwin arm64
cross_compile ${basename}-${version} windows amd64


rm -rf ${builddir}