Skip to content

Commit

Permalink
fix(ci): proper arch label
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Jul 4, 2023
1 parent 2f5a0e5 commit 5946393
Showing 1 changed file with 6 additions and 6 deletions.
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}

0 comments on commit 5946393

Please sign in to comment.