Skip to content

Commit

Permalink
.github/workflows: Replace os with darwin
Browse files Browse the repository at this point in the history
Signed-off-by: Kfir Toledo <[email protected]>
  • Loading branch information
kfirtoledo committed Mar 6, 2024
1 parent fd0fb94 commit 76d000d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,13 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build images
run: make docker-build
- name: Build and compress linux binaries
- name: Build and compress binaries
run: |
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 make cli-build BIN_DIR=linux
tar -czvf clusterlink-linux-amd64.tar.gz --transform 's/linux/clusterlink/' ./linux
- name: Build and compress macOS binaries
run: |
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 make cli-build BIN_DIR=os
tar -czvf clusterlink-darwin-amd64.tar.gz --transform 's/os/clusterlink/' ./os
- name: Build and compress Arm-based macOS binaries
run: |
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 make cli-build BIN_DIR=osarm64
tar -czvf clusterlink-darwin-arm64.tar.gz --transform 's/osarm64/clusterlink/' ./osarm64
for pair in "linux:amd64" "darwin:amd64" "darwin:arm64"; do
IFS=':' read -r os arch <<< "$pair"
GOOS="$os" GOARCH="$arch" CGO_ENABLED=0 make cli-build BIN_DIR="$os"
tar -czvf "clusterlink-$os-$arch.tar.gz" --transform "s/$os/clusterlink/" ./"$os"
done
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions hack/install_clusterlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
# Detrmine the OS.
OS=$(uname)
if [ "${OS}" = "Darwin" ] ; then
CL_OS="os"
CL_OS="darwin"
else
CL_OS="linux"
fi
Expand Down Expand Up @@ -80,4 +80,4 @@ printf "\n"
printf "\t\e[1;33mexport PATH=\"\$PATH:%s\"\n\e[0m" "$install_path"
printf "\n"
printf "For more information on how to set up ClusterLink in your Kubernetes cluster, please see: \e[4mhttps://cluster-link.net/docs/getting-started\e[0m\n"
printf "\n"
printf "\n"

0 comments on commit 76d000d

Please sign in to comment.